Thursday, June 4, 2009

Grep Command Options

http://solarisinterivew.blogspot.com/ solaris interview questions and answers



Grep Command Options


-i - Searches for both upper & lower case characters

-l - Lists the names of files with matching lines

-n - Proceeds each line with the relative line number in the file

-v - Inverts the search to display lines that do not match the pattern

-w - Searches for the expression as a complete word

mkdir rmdir cp echo commands

http://solarisinterivew.blogspot.com/ solaris interview questions and answers

# mkdir –p /data/dir   Creates directory and sub directory in one shot
# rmdir –r /data         Deletes the directory and all its subdirectory and files
# cp –r /data /data1   It copies the directory
# echo $MANPATH
: /usr/local/samba/man:
# echo $PATH        Shows environmental path
/usr/sbin:/usr/bin

Uname commands

http://solarisinterview.blogspot.com solaris interview questions and answers

# uname –a  Gives all details about the system
# uname –m  Displays H/W platform (sun4u)
# uname –p  Machine processor architecture (sparc or i386)
# uname –i  Machine model architecture (SUNW, Ultra 5_10)
# uname –X  Detailed description
Custom Search

Feeds from my other blog

Samsung S2 Brand new for 25900 White piece sealed box

For Sale, Mobile Phones - Accessories in India, Andhra Pradesh, Hyderabad. Date September 17

For Sale in Hyderabad