-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShell_Unix_Command_Line
More file actions
96 lines (60 loc) · 1.67 KB
/
Shell_Unix_Command_Line
File metadata and controls
96 lines (60 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Echo
is for printing commands in terminal
the explanation mark(!)
Causes issue in command line
Example echo 'Hello, shello!'
ls
List the files in the directory.
cd
Move to a different directory.
..(the two dots)
Let you go back in the directory and the
;
Semi
run two command at the same time
pwd
Print Working Directory shows you in which directory you are
..
Is the parent directory
.
Current Directory
ls delta
will bring your home directory (علامة التقريب(
ls - l
print longer more detail listing of files
Ls - l Documents/*.pdf
○ List all of your pdf files in the pdf directory
mkdir
Creates directories.
mv
Move files from a directory to another.
Using Shell you can move all files from a directory to another
CURL
is used in command lines or scripts to transfer data. To download a file from a dirctory.
-L
follow redirect
-o
google.html-L
-o
to get it to the file
U need to put ' inside the URL'
cat
View file content. (catenate)
less
View file content screen by screen.
rm
Delete files.
rmdir
Delete directories.
Rm
remove the file forver
Rm -I
remove the file to the trash
grep
"global regular expression print,” processes text line by line and prints any lines which match a specified pattern
• wc: "short for word count" reads either standard input or a list of files and generates one or more of the following statistics: newline count, word count, and byte count
grep shell dictionary.txt | less
grep shell dictionary.txt | less
ls Pictures is the most direct way to do it.
cd Pictures; ls changes directory to the Pictures subdirectory, then runs ls in that directory.
ls Pictures/../Pictures is unnecessarily verbose, but it does work.