The command line is an indispensable tool for developers. Whether you're managing servers, automating tasks, or navigating your filesystem, knowing your way around the terminal will make you significantly more productive.
Navigation
pwd # print working directory
ls -la # list all files with details
cd /path # change directory
mkdir mydir # create directoryFile Operations
cp src dest # copy
mv src dest # move / rename
rm -rf dir # remove recursively
cat file # view file contents
grep -r "term" . # search recursivelyProcess Management
ps aux # list processes
kill -9 PID # force kill process
top # real-time process monitor
& # run in backgroundNetworking
curl -I url # fetch HTTP headers
wget url # download file
netstat -tuln # show listening ports
ssh user@host # connect via SSH