Blog Archives

System information commands

System information commands ========================================================================== 1> df : disk usages / partition. #df -hT   : T ( show partition type ) ========================================================================== 2> du : for calculating folder size #df -sh /folder path ========================================================================== 3> free : RAM and SWAP memory

Posted in commands

Process management commands

Process management commands. 1> top : show all the current current process. #top 2> ps : it collect one running snap shot of top command result. #ps aux : a (all), u(users), x(process/terminal) 3> pidof : find process id using

Posted in commands

permission and ownership

permission and ownership =================================== Permission ::: you can set diffent permissions to files and folders Following are the permissions and there numeric and symbolic values. Symbol            Numerical r(read)           4 w(write)    2 x(execute)  1 -(none)           0 There are 2 methods

Posted in commands

Foreground and background processes or Jobs

Foreground and background processes or Jobs. 1> execute command in foreground ie. execute command in terminal #firefox 2> execute command in background : put ‘&’ symbol at end of command #firefox & 3> put foreground command in background : execute

Posted in commands

compress and decompress files/folder

compress and decompress files/folder. 1> zip & unzip 1. compress file : #zip filename.zip filename   —–you can give any name instead filename.zip 2. compress folder : #zip folder.zip folder 3. uncompress / extract file : #unzip compressName.zip 4. View zip

Posted in commands

commands in details

commands in details. 1> ls : listing of files in current directory =================================== 3 types of files i> regular files – ii> directory d iii> special files Block b character c pipe/name p symbolic link l socket s . ->

Posted in commands

Directory

Directory 1> create directory #mkdir directoryName create directory and set permission. #mkdir -m 644 sunil show message as file/folder created #mkdir -v test create directory with hierarchical structure. #mkdir -p /a/b/c/d/e 2> change direcory / path #cd /new_path 3> look

Posted in commands

Files

Files create files 1> touch command #touch filename : it create empty file. Actually it change the file timestamp if file present. change timestam of file #touch -t [(cc)YY]MMDDhhmm[.ss] filename eg. #touch -t 201101011212.22 sunil.txt -> create multiple file at

Posted in commands

History command

History command show all the command history previously executed. #history -c : clear the history temporarily #history -r : restore /recover the history temporarily clear #history -w : permanently clear the history Or save history to file All the commands

Posted in commands

Help

Help #whatis mkdir : give short description #mkdir –help : show help, options and description #info mkdir : it available before RHEL version 5 #man mkdir : same as info in RHEL 5 and later versions #pinfo mkdir : same

Posted in commands