Best Linux Command

By | May 16, 2020
Linux Command

Here in this article, we have provided some of the most important Linux commands, which we often use when we interact with Linux terminal. Many of the Hosting servers support the Linux dashboard to host a website, so a web-developer needs to have the knowledge of basic Linux commands.

Linux command for File navigations

Here are some basic Linux commands we frequent used when we deal with files and directories.

Vamware
Linux Commands Description
pwd It shows the directory on which you are currently in, it stands for Print Work directory. This command comes very usefully when you want to check the path of the file.
ls The ls command is used to show all the content and files present in the directory.
ls -a This command is used to list all the files include the hidden once.
cd cd stands for change directory, it’s used to move from one directory to another
mkdir mkdir stands for make directory, this command help to create a new directory.
rmdir rmdir command is used to remove an existing directory.
lsblk lsblk, command is an extension of ls command, it is used to show the tree-like structure of your block devices.
 mount mount command is used to mount the SD card and USB to the existing files.
df df command is used to show the vital information about the disk space.

Linux command for System

There are many commands which show the information about the device and OS. These commands are very powerful and come very handy while dealing with software in the Linux system.

Linux Commands Description
uname uname command is used to get the system information, such as system name, version, Operating System, etc
ps This command is used to visualize the current process running on your system.
kill As these command names suggest this command is used to stop or kill any running or stuck process, this command comes very usefully when any process gets stuck due to limited resources.
service This command is used to manipulate the system
batch This command is used for automation the script
shutdown This command is used to close the Linux terminal.

Linux Command to manipulate files

Linux Commands Description
cat cat command can be used for multiple purposes such as, to create a new file, view the content of the file and redirect output to another command-line tool or file.
touch touch command is used to create a valid empty file.
head Using the head command, we can view the beginning of the file from the terminal.
tail The command tail is the just opposite of head command, it is used to show the tail of the file.
cp This command is used to copy a file from one folder to another
mv This command is used to move a file from one folder to another.
comm This command is used to compare two files for common and distinct lines.
less less command is used to view the content of the file, unlike cat command, less can view the content of the file in both directions.
ln The ln command is used to create symbolic links to the specific files.
dd dd command is used to copy and convert the file from one type to another.
alias This command can only be used by the system admin and it can replace a word by another string in the file.

Linux Command for Search

In Linux, we have a regular expression that comes very useful while performing the search operation in the terminal.

Linux Commands Description
find With find command, we can search a file from the terminal.
which which command is used to search the executable files.
locate locate command is used to find the location of a specific file.
grep This command uses along with regular expression, which is used to find a specific pattern from a file.
sed This command used to replace the specific text from a text file.

Linux Command for I/O

There are many basic Linux commands we use so often to increase the interactivity with the terminal.

Linux Commands Description
clear clear command is used to clear out all the written commands and their output and make the terminal black as fresh.
echo echo command is used to show the text output.
sort sort command can arrange the files in alphabetic order
sudo With sudo command non-admin or guest user can manipulate the low permission files.
chmod This command is used to change or modify the access permissions of system files or objects.
chown This command is used to change the ownership of the file and directory.

Extra Linux command:

Linux Commands Description
tar tar command is used to extract the archive files
history This command, show all the commands that had been entered in that terminal since it was open.
mail -s ‘subject’ -c ‘cc-address’ -b ‘bcc-address’ ‘to-address’ This command is used to send mail from the terminal

Conclusion

There are many commands in Linux, here we have only covered the most frequent and basic command, as you use Linux and dive deep in its commands you will get acquainted with many new ones.

You may also be Interested In:

Leave a Reply

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