Linux & Bash
Grundlagen Befehle 1
Grundlagen Befehle 1
-
- 1 / 85
-
Cartes-fiches
lsusb -t oder lsusb(mit ID)
lsusb -d
mount
cat /etc/fstab
-r = read-only, -t = type z.B. iso9660(cd)
shutdown now
shutdown -f -r now
shutdown +15
Wrgt das System ab, nicht verwenden
Herunterfahren
reboot / shutdown -r now
echo "Nachricht an alle" | wall
dd if=/dev/sda of=mbr.backup ibs=512 count=1
od -x mbr.backup
pstree (Erster Prozess ist PID 1 ist init oder aktuell systemd)
systemctl list-units --type target
systemctl get-default
systemctl isolate runlevel6.target(Link auf Reboot), systemctl isolate poweroff.target(Ausschalten)
ls -l /lib/systemd/system/default.target
systemctl set-default runlevel3.target
sudo /etc/init.d/apache2 stop/start/status/reload
systemctl stop/start/status/restart dienst
systemctl enable/disable
localectl status
localectl list-locales
dpkg-reconfigure locales
dpkg-reconfigure console-setup
ldconfig -p | more
ldd /usr/bin/man
apt list --upgradable | more
apt-get clean/autoclean/autoremove
apt-get update/upgrade/dist-upgrade
apt-get remove
apt-cache search
dpkg -l
dpkg --get-selections | grep apache2
apt-get install
md5sum
passwd / passwd root
adduser