We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb9ef9 commit cb3948cCopy full SHA for cb3948c
cheatsheets/shell/get-info.md
@@ -0,0 +1,56 @@
1
+# Get info
2
+
3
4
+## which
5
6
+Alias:
7
8
+```console
9
+$ which ls
10
+ls is an alias for ls -G`
11
+```
12
13
+Function:
14
15
16
+$ which upgrade-deps
17
+upgrade-deps () {
18
+if [[ -n "$(git status --porcelain)" ]]
19
+then
20
+...
21
22
23
24
+## Type
25
26
27
+$ type upgrade-deps
28
+upgrade-deps is a shell function from /Users/mcurrin/.aliases`
29
30
31
32
+$ type ls
33
+ls is an alias for ls -G
34
35
36
37
+## ln
38
39
+Check if a symlink is valid.
40
41
+If valid:
42
43
44
+$ ln -s abc def
45
+$ ln def
46
+ln: ./def: File exists
47
48
49
+If not valid:
50
51
52
53
+$ rm abc
54
55
+ln: def: No such file or directory
56
0 commit comments