Basic Command For Linux

There are some commands for Linux :






cat
Example: $ cat filename
Function: Displays the contents of a file on the screen.

cd
Function: Used to move the directory as cd in windows functionality.

chmod
Example: $ chmod 777 filename / directory name
Function: Used to add and subtract users permission to access files or directories.

chown
Function: Used to change owner of a file or directory.

cp
Example: $ cp
To copy a file or copy. For example to copy file1 to file2.

find
Example: $ find. -name *. doc-print
Function: To find the location of a file.

grep
Example: $ grep
Function: Used to search for files containing text with the criteria you have set

gzip
Example: $ gzip
Function: Used to compress a file

kill
Example: $ kill
Function: Used to stop the process running.

ls
Function: Used to display the contents of a directory like dir command in windows.

lsmod
Function: Used to view the modules there

rmmod
Function: Used to remove the modules have

mkdir
Example: $ mkdir
Function: Used to Create a new directory as the DOS md command.

mv
Function: Used to move files from one location to another.

pwd
Function: Used to display the name of the directory where you at that time was.

passwd
Function: Used to change the root password.

ps aux
Function: Used to look at the processes running.

rm
Function: Used to delete a file, but by default rm command does not remove directories.

rmdir
Function: Used to delete an empty directory.

rpm
Function: Used to install rpm files

su
Function: Used to temporarily login as another user.

start
Function: A command to run the service.

stop
Function: A command to stop the service.

shutdown
Function: A command to turn off the system.

tar
Example: $ tar or direktori>
Function: Save and extract the files from media such as tape drives or hard disk.

unzip
Example: $ unzip
Function: Used to describe the extract or compress files with zip.

who
Function: Used to show anyone who was logged.