Basic Linux Commands[Cheat Sheet]

This section gives insight into the most important commands. There are many more commands than listed in this blog. Along with the individual commands, parameters are listed and, where appropriate, a typical sample application is introduced. To learn more about the various commands, use the manual pages,with these commands.

Linux

#LINUX Commands

cat - Display file’s contents to the standard output device.

cd - Change to directory.

mkdir - This will create a new directory.

rm - The rm command will remove a specific file.

sudo - This command is used to give the root access to access files.

vi editor - Vi is the inbuilt linux text editor to write Source codes.

head - The head command prints the first line of the file.

tail - The tail command prints the last line of the file.

grep - This command is used to search the files or find text inside the file.

Syntax : grep text_to_find filename.

ping - Shows how long it takes for packets to reach host.

chmod - change file modes and to give file permission.

logout - Logs the current user off the system.

locate filename - Search a copy of your filesystem for the specified filename.

rmdir - delete empty directories.

kill - If the process refuses to stop, use kill -9 pid.

man - Display the help information for the specified command. lpr - Send a print job. ls - List directory contents.

For any query contact Clofus Innovations.

Clofus

Software Solutions.