50 essential Linux commands every software developer should know

File & Directory Management

  1. ls – list directory contents
  2. cd – change directory
  3. pwd – show current directory
  4. mkdir – create directory
  5. rmdir – remove empty directory
  6. rm – remove files/directories
  7. cp – copy files/directories
  8. mv – move/rename files
  9. touch – create an empty file
  10. find – search for files
  11. locate – fast file search (needs updatedb)
  12. tree – view directory structure

File Content & Editing

  1. cat – display file content
  2. less – scroll through file content
  3. head – show first lines of a file
  4. tail – show last lines of a file
  5. nano – simple text editor
  6. vim – powerful text editor
  7. grep – search inside files
  8. sed – stream editor (text substitution)
  9. awk – pattern scanning and processing

Permissions & Ownership

  1. chmod – change file permissions
  2. chown – change file owner
  3. umask – default permission mask
  4. stat – file metadata

System Monitoring & Process Control

  1. top – live system monitoring
  2. htop – advanced system monitor (interactive)
  3. ps – list running processes
  4. kill – stop a process by PID
  5. killall – kill by process name
  6. df
    -h
    – disk space usage
  7. du
    -sh
    – directory size
  8. free
    -h
    – memory usage
  9. uptime – system uptime
  10. whoami – current user

Networking & Internet

  1. ping – check network connectivity
  2. curl – fetch URLs (API testing, etc.)
  3. wget – download files from web
  4. ifconfig / ip
    a
    – network interfaces
  5. netstat
    -tulpn
    – ports and listening services
  6. ssh – remote login
  7. scp – secure file transfer
  8. dig – DNS lookup
  9. traceroute – trace route to a host

Package Management (Ubuntu/Debian)

  1. sudo
    apt update
    – update package lists
  2. sudo
    apt upgrade
    – upgrade packages
  3. sudo
    apt install
    – install package
  4. sudo
    apt remove
    – uninstall package

Development & Scripting

  1. which – find path of executable
  2. bash
    script.sh
    – run a shell script

Leave a Reply

Your email address will not be published. Required fields are marked *