-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shell quizz
105 lines (57 loc) · 1.42 KB
/
Shell quizz
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
97
98
99
100
101
102
103
104
105
Questions:
1) $ ssh [email protected]
2) $ ssh-keygen
$ ssh-copy-id [email protected]
$ ssh [email protected]
3) $ sudo password user_name
4) $ sudo -i
5) # su user_name
or
# exit
6) $ sudo ...
7) $ sudo adduser user_name
8) $ su new_user_name
9) $ pwd
10) $ cd
11) $ cd ..
12) $ ls
13) $ find . -type f | wc -l
14) $ ls -sh
or
$ tree -h
15) $ ls -sh | sort
or
$ tree -h | sort
16) $ ls -t
17) $ find . -name "file_name"
18) $ grep -r word *
19) $ cat file_name
20) $ mv file_name /users
21) $ mv folder_name public/user
22) $ mv folder_name new_folder_name
23) $ man ls
24) $ cat /etc/*-release
25) $ df
26) $ df -h
27) $ ls -l
28) $ sudo chown alexandre /user/file_name
29) $ sudo chgrp group_name /user/file_name
30) $ chmod (Octal or Symbolie notation) file_name
31) $ ln -s folder link_folder
32) $ mkdir folder_name
33) $ touch new_file
34) $ vi file_name
35) $ rm file_name
36) $ rm folder_name
37) $ rm -r folder_name
38) $ find . -type f -size +30M
39) $ sudo apt-get update
$ sudo apt-get upgrade
40) $ sudo apt-get install jq
41) $ tar -cf file_name.tar file_folder_name
42) $ tar -xf file_name.tar
43) $ zip -r compressed_file_name.zip file_name
44) $ unzip file_name.zip -d destination_file
45) $ scp file [email protected]:/Downloads
46) $ scp [email protected]:/Downloads [email protected]:/Downloads
Quizz done by Alexandre Trincão