Wednesday, 29 October 2014

starting with unix

commands:-
1.$ls? - single character search
2.$ls[a-c]* - from a to c search
3.ctrl+z - come out of any bad command to your console


some vi commands:-

1. esc+/word - search word
2.        +yy      - copy line
3.        +p   - paste
4.        +dd - delete entire line
5.          +dw- delete from cursor entire line
6. :$s/A/B/g - replace A from B in your vi


echo command :-
-e : all $ value will be displayed
-n: no output trailing
\a: bell
\n: new line
\r: new line
\t:tab
\\:back slash

"": neglect $ and \
'' :unchanged
``: execute command

get value from your keyboard to a variable let it be fname

$read fname


process command


ps -ag --- all running process

kill 0 --- except shell

pstree -- tree branch


ls>first :-----  (overwrite)

ls>> ---------- exist and add



some general :------


who and wc used with pipe

who is user
wc no. of anything in a process for e.g number of users



1 comment:

hi provide your opinions here