forked from willishell/Exercise
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLINUX.sh
More file actions
57 lines (28 loc) · 661 Bytes
/
LINUX.sh
File metadata and controls
57 lines (28 loc) · 661 Bytes
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
EXERCISE 1:
cd /home
sudo mkdir workbench
sudo touch /home/workbench/readme.txt
cd workbench
vi readme.txt
echo readme.txt/cat readme.txt //题目有歧义
sudo su //为了获取读写权限,管理员登录
ls -a /home > list.txt
wc -m list.txt
EXERCISE 2:
touch message.txt
mv /home/message.txt /home/workbench/
cp /home/workbench/message.txt /home/
rm /home/message.txt//方法一
find /home/workbench/message.txt -delete//方法二
EXERCISE 3:
man ls
man man
apropos calendar
man calendar
EXERCISE 4:
find . -name "*.png"
find . -name "*.hiking.*" -delete
mkdir txtpath
mv *.txt txtplace
mkdir photopath
mv *.png photopath