a3
This commit is contained in:
@@ -1 +1,2 @@
|
||||
ls -a ~
|
||||
#!/bin/sh
|
||||
which ls pwd exit
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
cat /etc/passwd
|
||||
#!/bin/sh
|
||||
cp /bin/cp ~/
|
||||
which cp
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
wc -wl /etc/passwd
|
||||
mv ~/cp ~/mycp
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/bin/sh
|
||||
head -n 7 /etc/passwd
|
||||
tail -n 7 /etc/passwd
|
||||
env
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
touch ~/.hidden-file
|
||||
mkdir ~/.hidden-dir
|
||||
#!/bin/sh
|
||||
alias ".."="cd .."
|
||||
alias "..."="cd ../.."
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
mv ~/.hidden-file ~/.hidden-dir/
|
||||
#!/bin/sh
|
||||
alias "−"="cd -"
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/bin/sh
|
||||
yesterday="$(date -d "yesterday 13:00" '+%Y-%m-%d')"
|
||||
touch -d "$yesterday" ~/.hidden-dir/.hidden-file
|
||||
unalias "-" ".." "..."
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
f1="/usr/include/linux"
|
||||
f2="/usr/bin/X11/X"
|
||||
realpath -s --relative-to="$f1" "$f2"
|
||||
touch "-2"
|
||||
ls -a "-2"
|
||||
rm "-2"
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
#!/bin/sh
|
||||
f1="/var/log/cups"
|
||||
f2="/root"
|
||||
realpath -s --relative-to="$f1" "$f2"
|
||||
ls -a /etc/*.conf
|
||||
|
||||
Reference in New Issue
Block a user