Command line interface is a text-based interface that allows users to interact with the system via command lines or commonly known as command line.
As a Linux user, you should be familiar with command line interface. Command line interface will give you more access to make changes to the system you are using.
Linux gives users full access rights to control the system they use. You can freely change the system according to what you want.
There are so many commands that exist in Linux, but before mastering further commands, if you are a new user of Linux, you should master some basic commands first.
These commands are commands that you will often encounter and use as a Linux user.
If you want to see a more complete list of Linux commands, you can see them on the Complete List of Linux Commands and Their Functions page. There are hundreds of commands sorted alphabetically along with their functions that you can easily see.
But if you just want to know the basic commands, you can see them here. Here are the basic commands on Linux that you must master as a Linux user.
pwd
Order pwd function to see which directory you are currently in.
man
man is a command that serves to display the manual page or documentation of a command. By using the command man you can see the guide or function of a command.
ls
shortcut ls serves to display the contents of a folder by using command line interface. When you are in a certain folder or directory, you can see the contents of that folder or directory by using the command ls.
whoami
As the name suggests, command whoami function to see the name of user which you are currently using. By typing the command whoami on Terminal or command line interfacethen a will appear output name of user which you are using.
CD
CD is short for change directories. This command serves to move from the directory where you are currently. You can exit a folder or enter a specific folder by using this command.
mkdir
Order mkdir function to create a new folder or directory using command line interface. By using the command makdiryou can not only create a new directory, you can also create a new directory structure with a certain structure.
In other words, you can create multiple folders using just one command line in Linux by using the command mkdir.
touch
Order touch function to create a new file using command line interface. This command can create files with any extension.
rm
Order rm function to delete a file by using command line interface. In use, by using parameter certain orders rm also used to delete a folder that still has content in it.
rmdir
Almost similar to the command rmorder rmdir function to delete an empty folder.
mv
Order mv function to move a file using the command line. In use, you can also use this command to rename a file.
cp
Order cp is a command that functions to copy a file using command line interface.
Not the same as command mvthis command will not delete the underlying file, it just copies the contents of a file into a new file with a different name.
paint
Order paint function to display the contents of a file by printing it as output of the order.
find
Order find function to search for a file or a folder using Terminal or command line interfaces.
This command allows you to perform a search with several options filter search like searching for a file with a certain extension, a certain size, a certain location and so on.
locate
Apart from using the command findyou can also search with command line interface using command locate. Different from the command findorder locate perform a file search by matching the filename of database which exists.
kill
Order kill Used to stop a running process. You can stop a process by using the command based on pid of the process.
bg
Order bg function to send the process to the background (background), the process will still run, it’s just not displayed or sent to the background.
fg
Order fg is the opposite of the command bg. Order fg serves to send the process back to foreground (foreground).
chmod
Order chmod function to set the permissions of a file in Linux. You can set the permissions of a file to a file user or group specified by limiting access rights to rwx (read, write, execute). By using chmod You can also add or remove an access right without disturbing other existing permissions.
chown
chown is a command that serves to change the ownership of a file to user or group certain. You can change the ownership of a particular file from a user to user other or replace group owner of access rights of a file to group other.
chgrp
Order chgrp serves to change the user group that owns access rights to a file to belong to another group.
su
su stands for superuserthis command serves to activate a user normal to be superuser which has the same access rights as user “roots”.
To activate superuser mode this, user should be used user which is already set as administrator on the system.
mount
Order mount function to do mount a system file into a certain storage media so that it can be read or opened like a regular file.
umount
umount stands for unmountthis command works to do unmount or return a result mount performed on a previous file system.
reboot
Order reboot function to restart or perform restart system of a computer that is running or is running.
stop
Order stop serves to instruct the machine to stop all functions on the CPU. By using the command stop you can also shut down a Linux system.
power off
power off is a command that serves to turn off a system that is running completely or totally.
shutdown
shutdown is a command that serves to shut down a running Linux machine. By command shutdown You can schedule the shutdown of a computer.
*note: Command poweroff, shutdown, halt and reboot has almost the same function, you can see the Difference and Use of Poweroff, Shutdown, Halt and Reboot Commands here.
zip
Order zip serves to compress and package a file into an archive that has a “.zip” format. With this format, the file will be compressed so that it has a smaller size and is safe from viruses.
unzip
unzip is the opposite of the command ziporder unzip serves to extract a file that has been compressed into an archive format “.zip”.
tar
Almost the same as the command ziporder tar serves to compress a file into an archive format that has the format “.tar’.
dpkg
dpkg is a command or a package management tools which serves tomanage or install an application that has a “.deb” format.
du
Order du serves to display a summary of storage media usage or disc.
df
Order df serves to display the use of a storage media or disc.
quota
Order quota serves to display usage statistics disc, limit free space available for a user or group.
clear
Order clear function to clear the Terminal screen or command line interface from commands that have been executed previously and output-his.
history
Order history serves to display the history of commands that have been used recently.