Monday, March 19, 2012

Search

# find . –type f or d -name file_name

a. ._ to search in present directory

b. / -> to search in all directory

c. f-> file

d. d-> folder

# find . –type d -name file_name -exec rm -rf {} \ ; [to find and delete at a time, replace -exec by –ok to show message before delete]

# hdparm -tt /dev/hda [to show hdd speed]

# badblocks -s /dev/had [to find bad sector]

# bc [calculator, to exit write ‘quit’]

# bc

for (i=1; i<=5; i++)

# expr 10 + 50 [for direct calculation]

# man command_name [to show manual page, such as # man ls (to show ’ ls ‘ manual)]

# cal month year [to show calander]

Ex: # cal 5 2008

# aspell check file_name [to check spelling]

No comments:

Post a Comment