a1 und a2
This commit is contained in:
4
pa-01/a3/a.sh
Executable file
4
pa-01/a3/a.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
touch "*"
|
||||
ls -a "*"
|
||||
rm "*"
|
||||
1
pa-01/a3/b.sh
Executable file
1
pa-01/a3/b.sh
Executable file
@@ -0,0 +1 @@
|
||||
ls -a ~
|
||||
1
pa-01/a3/c.sh
Executable file
1
pa-01/a3/c.sh
Executable file
@@ -0,0 +1 @@
|
||||
cat /etc/passwd
|
||||
2
pa-01/a3/d.sh
Executable file
2
pa-01/a3/d.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
wc -wl /etc/passwd
|
||||
3
pa-01/a3/e.sh
Executable file
3
pa-01/a3/e.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
head -n 7 /etc/passwd
|
||||
tail -n 7 /etc/passwd
|
||||
2
pa-01/a3/f.sh
Executable file
2
pa-01/a3/f.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
touch ~/.hidden-file
|
||||
mkdir ~/.hidden-dir
|
||||
1
pa-01/a3/g.sh
Executable file
1
pa-01/a3/g.sh
Executable file
@@ -0,0 +1 @@
|
||||
mv ~/.hidden-file ~/.hidden-dir/
|
||||
3
pa-01/a3/h.sh
Executable file
3
pa-01/a3/h.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
yesterday="$(date -d "yesterday 13:00" '+%Y-%m-%d')"
|
||||
touch -d "$yesterday" ~/.hidden-dir/.hidden-file
|
||||
4
pa-01/a3/i.sh
Executable file
4
pa-01/a3/i.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
f1="/usr/include/linux"
|
||||
f2="/usr/bin/X11/X"
|
||||
realpath -s --relative-to="$f1" "$f2"
|
||||
4
pa-01/a3/j.sh
Executable file
4
pa-01/a3/j.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
f1="/var/log/cups"
|
||||
f2="/root"
|
||||
realpath -s --relative-to="$f1" "$f2"
|
||||
Reference in New Issue
Block a user