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