Linux basic command man help ls mkdir rmdir

man : man command is used to learn unknown command
Example: you not know the command ls
if you like to know ls command by through simple type:man ls

syntax for man command
man commandname
Example:

kumar@jkumar-desktop:~$ man ls

it will display ls command behavior and other attribute
man command is the system's manual page.

help:help command look like man command
help command shows available option for that command
by using these man and help command you can learn all the command
easily
Syntax for help command
--help
Example
kumar@jkumar-desktop:~$ ls –help

Then it will display available option for the for ls command

ls:ls command it will display list of directory contents.

kumar@jkumar-desktop:~$ ls

Bliss.bmp Documents Music Public Videos

Desktop Examples Pictures Templates

mkdir:used to create to new folder
Syntax
mkdir
Example

step1:first list files
kumar@jkumar-desktop:~$ ls

Bliss.bmp Documents Music Public Videos

Desktop Examples Pictures Templates


step2:create new directory studentwebsite
kumar@jkumar-desktop:~$ mkdir studentwebsite


step3:list directory and see new studentwebsite folder is created
kumar@jkumar-desktop:~$ ls

Bliss.bmp Documents Music Public Templates

Desktop Examples Pictures studentwebsite Videos

rmdir:used to remove to empdy directory
Syntax
rmdir
Example

step1:first list files
kumar@jkumar-desktop:~$ ls

Bliss.bmp Documents Music Public Templates

Desktop Examples Pictures studentwebsite Videos


step2:remove directory studentwebsite
kumar@jkumar-desktop:~$ rmdir studentwebsite/


step3:list directory and see old studentwebsite folder is remove
kumar@jkumar-desktop:~$ ls

Bliss.bmp Desktop Documents Examples Music Pictures Public Templa

Post a Comment

0 Comments