Bash

Command lines
pwd current dir
cd change dir (no path specify will return to home dir)
ls list of content
ls -l (display long) and ls -lt (sort by time) and ls -ltr (sort by time and reverse) and ls -al (show hidden files too)
ls *.txt list only doc ends with .txt
clear
mkdir new dir
cp copy
rm remove
mv move
man ls manual
history list of past command
Control-A to command start
Control-A to command end
ls -l > ls.out create ls.out file
echo "hello" >> ls.out append "hello" to the end of ls.out file
less ls.out read file
nano read file
alias gs="git status"
Last updated
Was this helpful?