This commit is contained in:
0qln
2025-10-20 09:51:27 +02:00
parent fc833b39ba
commit ed4aa3688d
9 changed files with 17 additions and 16 deletions
+2 -1
View File
@@ -1 +1,2 @@
ls -a ~
#!/bin/sh
which ls pwd exit
+3 -1
View File
@@ -1 +1,3 @@
cat /etc/passwd
#!/bin/sh
cp /bin/cp ~/
which cp
+1 -1
View File
@@ -1,2 +1,2 @@
#!/bin/sh
wc -wl /etc/passwd
mv ~/cp ~/mycp
+1 -2
View File
@@ -1,3 +1,2 @@
#!/bin/sh
head -n 7 /etc/passwd
tail -n 7 /etc/passwd
env
+3 -2
View File
@@ -1,2 +1,3 @@
touch ~/.hidden-file
mkdir ~/.hidden-dir
#!/bin/sh
alias ".."="cd .."
alias "..."="cd ../.."
+2 -1
View File
@@ -1 +1,2 @@
mv ~/.hidden-file ~/.hidden-dir/
#!/bin/sh
alias ""="cd -"
+1 -2
View File
@@ -1,3 +1,2 @@
#!/bin/sh
yesterday="$(date -d "yesterday 13:00" '+%Y-%m-%d')"
touch -d "$yesterday" ~/.hidden-dir/.hidden-file
unalias "-" ".." "..."
+3 -3
View File
@@ -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 -3
View File
@@ -1,4 +1,2 @@
#!/bin/sh
f1="/var/log/cups"
f2="/root"
realpath -s --relative-to="$f1" "$f2"
ls -a /etc/*.conf