Saturday, January 26, 2013

Linux CommandLine

Linux Command

command -options arguments

Navigation

pwd - print current location

cd - change dir

 [dir]:go to dir
 - :go to prev dir
 ~[username] :go to username home

Exploring The System

ls - list content

[dir]:content of the  dir
-l:long format
-a: list all file
-t: sort by time
-1:show line by line
-h: human readable
-s: sort by  size

file [filename] - get info about the filename

less  [filename] - read file content

Page Up / b :back one page
Page Down / space :forward one page
Up arrow: up one line
Down arrow : down one line
G:end of file
1G / g: begining of file
/character : search forward to next character
n : search forward to next character of prev search
q: quit


No comments:

Post a Comment