Linux commands

Useful commands to use in Linux or MacOs terminal

2024-12-22
LinuxCommandline

Create directory structure with a template

mkdir -p ./home/{a,b}/{x,y,z} 

Go back in history 1 step

cd -

Create files with a template

touch file{1..10}.txt

Live updates of last lines of log file

tail -f err.log

Show last 5 commands in history

history 5