Linux Bash
Befehle Block 3
Befehle Block 3
-
- 1 / 54
-
Cartes-fiches
sudo -i
sudo -s
uptime
whoami, who, id -un oder echo $USER
users
uname -a
uname -r
clear
history -c
history 6 > mein_scriptfile
history | ps2pdf --> history.pdf
!!
!2
echo $?
more
mit / und Eingabe
Mit q
Nur less unterstützt die Pfeiltasten
find /root -name
find /root -type f
find /root -type d
find /root -user root
find /root -user root -fprint find_root
find /root -name find_root -delete
locate (Benutzt eine Datenbank in "/var/lib/mlocate/mlocate.db", deswegen schneller)
updatedb
updatedb &
cat /etc/updatedb.conf
whereis cat / which cat
Nein, Dateiendungen sind nur Hilfen für den Benutzer
file text
cd /lib/systemd/system --> Beginnt immer beim Wurzelverzeichniss Root /
pwd --> /root --> cd directory == Beginnt immer ausgehend vom bestehenden Verzeichnis
Mit einem .
Mit einem .. (Backlink)
Ja, aber nur aus Konsistenzgründen
Nur cd, oder cd ~
ls -l
ls -la
ls -l | grep "^d"