pwd
prints the current working directory
ls
lists contents of directory
usage: ls [directory] (if no directory specified, will list current directories contents)
cd
changes directory
usage: cd [target-directory]
touch
creates an empty file
usage: touch [filename]
cp
copy files to directories
usage: cp [source] [destination]
mv
moves files to directories
usage: mv [source] [destination]
rm
removes files or directories
usage: rm [filename]
mkdir
makes a directory
usage: mkdir [directoriesname]
rmdir
removes an empty directory
usage: rmdir [directoriesname]
less
paginating a text file to be read easily
usage: less [filename]
cat
shows content of a text file (not recommended for large text files)
usage: cat [filename]
nano
open text files in nano text editor (simple and beginner-friendly)
usage: nano [filename]
vim
open text files in VIM editor [more advanced]
usage: vim [filename]
chmod
changes file permissions
usage: chmod [mod] [filename]
get more details from article below:
https://www.notion.so/chmod-guide-27209ea7608c80bd90adc55cb45aabd8
chown
changes files ownership
usage: chown user:group [filename]
df -h
display disk usage(-h is the flag for human-readable output)
free -h
display memory usage(-h is the flag for human-readable output)
top
monitor running processes
htop
top command with a better interface
uname
display system information(should be used by -a flag)
whoami
shows the current user
kill
terminates a program
usage: kill [PID]
ps
list running processes
wget
downloads files from web
usage: wget [URL]