Test your knowledge!Take a quiz to access yourself.

Useful Linux Commands

Linux brings the most powerful CLI commands which gives you power do most of the task in very less time then GUI. You can use all the linux commands from OS terminal or from remote ssh client, or for scripting and hacking the servers. Below are the few linux commands which are important and most frequently used by the users.

  • cat – Concatenate and print (display) the content of files
  • cd – Change Directory
  • chgrp – Change group ownership
  • chmod  – Change access permissions
  • chown  – Change file owner and group
  • clear – Clear terminal screen
  • cp – Copy one or more files to another locationd
  • date – Display or change the date & time
  • dir – Briefly list directory contents
  • exit – Exit the shell
  • find  – Search for files that meet a desired criteria
  • format – Format disks or tapes
  • ftp – File Transfer Protocol
  • grep – Search file(s) for lines that match a given pattern
  • groupadd – Add a user security group
  • groupdel – Delete a group
  • groupmod – Modify a group
  • groups – Print group names a user is in
  • gzip – Compress or decompress named file(s)
  • help – Display help for a built-in command
  • history – Command History
  • hostname – Print or set system name
  • ifconfig – Configure a network interface
  • ifdown – Stop a network interface
  • ifup – Start a network interface up
  • kill – Stop a process from running
  • killall – Kill processes by name
  • logout – Exit a login shell
  • make – Recompile a group of programs
  • man – Help manual
  • mkdir – Create new folder(s)
  • mv – Move or rename files or directories
  • netstat – Networking information
  • nslookup – Query Internet name servers interactively
  • passwd – Modify a user password
  • ping – Test a network connection
  • pkill – Stop processes from running
  • printf – Format and print data
  • ps – Process status
  • pwd – Print Working Directory
  • rar – Archive files with compression
  • rcp – Copy files between two machines
  • readonly – Mark variables/functions as readonly
  • reboot – Reboot the system
  • rename – Rename files
  • rm – Remove files
  • rmdir – Remove folder(s)
  • scp – Secure copy (remote file copy)
  • sftp – Secure File Transfer Program
  • shutdown – Shutdown or restart linux
  • sleep – Delay for a specified time
  • ssh – Secure Shell client (remote login program)
  • su – Substitute user identity
  • sudo – Execute a command as another user
  • tail – Output the last part of file
  • tar – Store, list or extract files in an archive
  • touch – Change file timestamps
  • top – List processes running on the system
  • traceroute – Trace Route to Host
  • unrar – Extract files from a rar archive
  • useradd – Create new user account
  • userdel – Delete a user account
  • usermod – Modify user account
  • users – List users currently logged in
  • vi – Text Editor
  • who – Print all usernames currently logged in
  • whoami – Print the current user id and name (`id -un’)
  • wget – Retrieve web pages or files via HTTP, HTTPS or FTP
  • zip – Package and compress (archive) files.
  • .  – Run a command script in the current shell
  • !! – Run the last command again

So All the linux commands are with you now. Practice them daily and they will be embedded in your mind. They will be very useful for any task which you want to perform on your Linux machine, or on a remote server. Other than this they are the most frequently asked linux commands in the job interviews. So all yours, just keep them in your memory and make best use of them.

Note: Please comment below to provide feedback about the post. If you have any query then also please feel free to ask by commenting below. We will bring you the best and the latest 🙂 .

3 Comments

Add a Comment

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