Commonly used linux commands

September 11, 2018 - Lesezeit: ~1 Minute
# Emit tab in shell format: %x09
# Double tabs: %x09%x09

# last 10 commands used
history 10

# Following changes of a file
tail -200f test_file.txt

# Find file
find . -type f -name *.xml | xargs grep 123456

# List txt-files in folder
ls *.txt

# Hard stop process
kill -9 <process_code>

# Indent xml file and output to new file
cat input.xml | xmllint --format - >> formatted_output.xml