User Tools

Site Tools


old:linux-referenz
# Output einer Terminal-Session loggen
bash | tee <output-file>

# Output mit Errors in eine Datei leiten
<cmd> 2>&1 | tee -a <output-file>

# Installationsdatum von Linux
rpm -qi basesystem      # bei Red Hat
tune2fs -l /dev/sda1 | grep 'Filesystem created'        # /dev/sda1 = Root-Filesystem
dumpe2fs /dev/sda1 | grep 'Filesystem created'          # /dev/sda1 = Root-Filesystem

# slowcat - langsame Ausgabe
cat <File> | perl -e '$|=1;while(<>){for(split(//)){print;select(undef,undef,undef,0.01);}}'

# ASCII <--> HEX
echo EAD5 | tr -d '\n' | xxd -p         ---> 45414435
echo 45414435 | tr -d '\n' | xxd -p -r  ---> EAD5
old/linux-referenz.txt · Last modified: 2023/01/11 20:29 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki