blob: b348b41b16d3874b3f4d2e780a8e4244b889b1a7 (
plain)
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
|
```sh
pwd
ls ; ls . ; ls -1 ; ls -la
cd ; cd .. ; cd ~ ; cd -
mkdir name_dir ; mkdir -p /name1/name2
touch test.txt ; > test.txt
echo "test" > test.txt
cp test.txt test1.txt
cp -r dir1 dir2
mv test.txt test2.txt
mv test2.txt dir
rm test.txt
rm /путь/к/файлам/*.txt
rm -r dir_name
rm -i /путь/к/файлам/*.txt
rm -f /путь/к/файлам/*.txt
ln file1 file2
chmod xxxx dir
chmod -R xxxx dir
cat test.txt
cat test.txt | head -2
cat test.txt | tail -1
grep 'string' test.txt
find ./ -name 'test'
find ~/ -name 'test*'
find ~/ -name '*.php*'
tar -cf arhive_name.tar dir_name
tar -xvf arhive.tar
history
clear
exit
Ctrl-C
Ctrl-D
Ctrl-U
Ctrl-Z
Ctrl-W
!!
Ctrl-Shift_c
Ctrl-Shift-V
fg ; bg
====================================
sodu mkdir demo
^sodu^sudo
# Это заменит «sodu» на «sudo» и повторно выполнит команду.
# Это особенно полезно, если вы допустили ошибку в длинной команде, так как избавляет вас от необходимости повторно вводить команду.
```
|