You are on page 1of 2

>>> All Command-line That You Need With Option <<<

# passwd ==> change your password on the system


# pwd
==> print working directory
# ls
==> lisr contents of directory
it's options
-a ==> Lists all files in a directory, including hidden files
-l ==> View detailed information about the contents of a directory
-d ==> If an argument is a directory, lists only its name not contents, us
ed with -l often
-R ==> View a recursive list of a directory
-F ==> Display file types
-n ==> Like -l, but UID & GID expressed with their associated numbers not
names
-ld ==> View detailed information about a directory without viewing its con
tents
# uname ==> Prints name of current system
it's options
-a ==> Prints basic information currently available about the system
-i ==> Prints the name of the platform
-n ==> Prints the node name (like WINS name in windows)
-r ==> Prints the operating system release number
-s ==> Prints the name of the operating system (this is the default)
# cat
==> Concatenate and display files
# cal
==> Display a calendar
# clear ==> Clear the terminal window
# cd
==> Change working directory
it's options
. ==> current directory
.. ==> parent directory
# date ==> Write the date and time
# sort ==> Sort, merge, or sequence check text files
# who
==> Who is on the system
# whatis ==> command-line help you (to get help for any command-line)
# info ==> command-line help you (to get help for any command-line)
# man
==> Find and display reference manual pages
# man intro ==> Views descriptive information about sections contained in the ma
n pages
it's options
-k ==> Views commands containing certain keywords
-l ==> Lists the man pages matching certain command or filename
-s ==> number command Looks up a specific section (with number of the sect
ion)
-s ==> number filename Looks up a specific section (with number of the sec
tion)
# more ==> Browse or page through a text file
# head ==> displays the first 10 lines of a file
it's options
-n ==> Displays the n lines string at the beginning of the file
# tail ==> displays the last 10 lines of a file.
it's options
-n ==> Displays the n lines from the end of the file
+n ==> Displays the file from line n to the end of the file
# wc
==> Displays the number of lines, words, and characters in a file
it's options
-c ==> Displays byte count
-l ==> Displays line count
-m ==> Displays character count
-w ==> Displays word count
# cp
==> Copy files

it's options
-i ==> Interactive. Prevents from accidentally overwriting existing files
or directory
-r ==> Recursive. Copies the directory and all files, subdirectories, and
their files
cp sources target
# mv
==> Moves, rename files and directories
it's options
-i ==> source target Prevents from accidentally overwriting existing files
# rm
==> Permanently remove files and directories
it's options
-i ==> Prevents the accidental removal of existing files or directories
-r ==> Remove contents of a directory and the contents of all subdirectori
es
# mkdir ==> directory_name Make directories
it's options
-p ==> directory_names Create directory by creating the nonexisting parent
directories
# touch ==> Create an empty file
Thats All Command-Line From Module 1 To Module 5
Thanks For All
And We Will Continue
And With My Best Wishes

You might also like