Sourav Mandal
Sourav Mandal

@souravcode

12 Tweets 56 reads Jun 08, 2022
Top 50 Linux Commands You Must Know!
A Thread
➊ ls ➟ The most frequently used command in Linux to list directories
βž‹ pwd ➟ Print working directory command in Linux
➌ cd ➟ Linux command to navigate through directories
➍ mkdir ➟ Command used to create directories in Linux
➎ mv ➟ Move or rename files in Linux
➏ cp ➟ Similar usage as mv but for copying files in Linux
➐ rm ➟ Delete files or directories
βž‘ touch ➟ Create blank/empty files
βž’ ln ➟ Create symbolic links (shortcuts) to other files
βž“ cat ➟ Display file contents on the terminal
➊➊ clear ➟ Clear the terminal display
βžŠβž‹ echo ➟ Print any text that follows the command
➊➌ less ➟ Linux command to display paged outputs in the terminal
➊➍ man ➟ Access manual pages for all Linux commands
➊➎ uname ➟ Linux command to get basic information
➊➏ whoami ➟ Get the active username
➊➐ tar ➟ Command to extract and compress files in Linux
βžŠβž‘ grep ➟ Search for a string within an output
βžŠβž’ head ➟ Return the specified number of lines from the top
βž‹0 tail ➟ Return the specified number of lines from the bottom
βž‹βžŠ diff ➟ Find the difference between two files
βž‹βž‹ cmp ➟ Allows you to check if two files are identical
βž‹βžŒ comm ➟ Combines the functionality of diff and cmp
βž‹βž sort ➟ to sort the content of a file while outputting
βž‹βžŽ export ➟ Export environment variables in Linux
βž‹βž zip ➟ Zip files in Linux
βž‹βž unzip ➟ Unzip files in Linux
βž‹βž‘ ssh ➟ Secure Shell command in Linux
βž‹βž’ service ➟ Linux command to start and stop services
➌0 ps ➟ Display active processes
➌➊ kill and kill all ➟ Kill active processes by process ID or name
βžŒβž‹ df ➟ Display disk filesystem information
➌➌ mount ➟ Mount file systems in Linux
➌➍ chmod ➟ Command to change file permissions
➌➎ chown ➟ Command for granting ownership of files or folders
➌➏ifconfig➟Display network interfaces and IP addresses
➌➐traceroute➟Trace all the network hops to reach the destination
βžŒβž‘wget➟Direct download files from the internet
βžŒβž’ufw➟Firewall command
➍0iptables ➟Base firewall for all other firewall utilities to interface with
➍➊ apt ➟ Package managers depending on the distro
βžβž‹ sudo ➟ Command to escalate privileges in Linux
➍➌ cal ➟ View a command-line calendar
➍➍ alias ➟ Create custom shortcuts for your regularly used commands
➍➎ dd ➟ Majorly used for creating bootable USB sticks
➍➏ whereis ➟ Locate the binary, source, and manual pages for a command
➍➐ whatis ➟ Find what a command is used for
βžβž‘ top ➟ View active processes live with their system usage
βžβž’ useradd and usermod➟Add new user or change existing users data
➎0.passwd➟pdate passwords
That's it for this thread. If you found it useful!
🀝 Follow me
@sourav_code
βœ…
πŸ“’ Hey, I am a Web Developer From India, Helping people learn web development. I Tweet Around.
HTML
CSS
JavaScript
React, & More Tips & Web Development Content.
Like πŸ’–
Retweet

Loading suggestions...