You are on page 1of 2

UNIX (Basic Commands) ***************************** CLUI GUI UNIX ------- Multiuser - Multiprocessor Features ------------- Flexible - Stable - Faster

- Web - FOC Q: Where is unix n how can it be connected via windows UNIX ARCHITECHTURE ----------------------------------- Kernel -> heart of Unix (an ) - Shell - Auxilary programs (Built in or lib func) Putty is a terminal login means to send the login details to shell shell is a component in the server File Structure ------------------/root -> bin -> tmp -> home -> -> mgowria ->

File Management Commands -----------------------------------------cd ~ home dir cd back to prev dir pwd present working dir cd . present working dir cd .. one level above curr dir mkdir -p make dir with subdir eg: mkdir - p DIR1/subdir1/subdir1.1 mkdir -m 555 dir3 make dir named dir3 with read n executable permissions file cat cat cat cat cat cat cat -b -n -v -t -e -r determine the type of the file created concat - to concat n display the contents of a file shows rowcount for only data rows shows rowcount for all rows dun recognise tabs recognises tabs displays the end line as well concat multiple blank lines into one

cat -s {invalid filename} - returns no error msh\g cat cat -s concat nonprintable chars more - a terminal program press f to move forward press b to move backward display the whole file part by part using tab key type v it'll go to the vi editor type q! it'll b back to the more command more -f cleara the editor before opening the file to view in more more -s skews multipls blank lines more +/ search particular text in the file eg: more +/try filename.txt more than sk:e eg: in more mode, sk:e filename.txt -skips from file to file on more mode

You might also like