Top 70 Linux Commands
Top 70 Linux commands and what they do.
- ls – list the files in a directory
- pwd – display the current working directory
- cd – change the current working directory
- mkdir – create a new directory
- rmdir – remove an empty directory
- cp – copy a file or directory
- mv – move or rename a file or directory
- rm – delete a file or directory
- cat – display the contents of a file
- less – view a file a page at a time
- head – display the first few lines of a file
- tail – display the last few lines of a file
- grep – search a file for a pattern
- find – search for files in a directory tree
- which – locate a command
- whoami – display the current user
- who – display a list of users currently logged in
- finger – display information about a user
- w – display a list of users currently logged in and their processes
- ps – display a list of processes
- top – display real-time information about processes
- kill – terminate a process
- pkill – terminate a process by name
- shutdown – shut down the system
- reboot – reboot the system
- date – display the current date and time
- cal – display a calendar
- uptime – display the current uptime
- time – display the current time
- exit – exit the current command shell or program
- logout – log out of the current session
- clear – clear the terminal screen
- history – display the command history
- alias – create an alias for a command
- unalias – remove an alias
- chmod – change the permissions of a file or directory
- chown – change the owner of a file or directory
- chgrp – change the group of a file or directory
- df – display information about free disk space
- du – display the size of a directory
- free – display information about free memory
- vmstat – display information about virtual memory
- iostat – display I/O statistics
- netstat – display network statistics
- lsof – list open files
- strace – trace system calls and signals
- ltrace – trace library calls
- ping – send a ping to a host
- traceroute – display the route to a host
- telnet – connect to a remote host using Telnet
- ssh – secure shell client
- scp – secure copy a file or directory
- sftp – secure file transfer client
- ftp – file transfer client
- nc – network utility
- wget – retrieve a file from the web
- curl – retrieve data from the web
- tar – archiving utility
- gzip – compress or decompress a file
- bzip2 – compress or decompress a file
- unzip – decompress a zip archive
- zip – create a zip archive
- unrar – decompress a RAR archive
- rar – create a RAR archive
- mount – mount a file system
- umount – unmount a file system
- fdisk – partition a disk
- parted – partition a disk
- mkfs – create a file system
- fsck – check and repair a file