In this lesson i'll talk about three important commands lines,the first one is the FIND command line..
Searching Directories with find command line
this command line is a powerfull searching command you can use it to find files which is on your hard disk,
for example to search for spell command under the /usr directory you have to do:
#find /usr -name spell -print
let's say that you want to find a file but you can't remember the name but you remember the date you create that file and the time,for example in the last 50 days you will have to use the following:
#find /usr/bin -type f -atime +50 -print
To find any file ,either new or modified that are one or fewer days old in the /usr/bin you have to use :
# find /usr/bin -type f -mtime -1 -print
and that's all you need to know about the find command line next i'll talk about the whereis command line . Finding Manual Pages by using Whereis command line
This command is used to find the file's binary source and manual pages reside for example if you want to find the find command line use the following
# whereis find
find: /bin/find /usr/bin/find /usr/share/man/man1/find.1.bz2
you can also use whereis to find only the binary version of the program by:
# whereis -b find
find: /bin/find /usr/bin/find
let's say that you didn't find your request ,what you will get will be like this:
# whereis foo
foo:
and that's all you need to know about whereis also
Getting command help with whatis command line
this command like the help command this command give you help and a summaries about any programme or command line let's say you want to know what is whereis comman line all you have to do is :
# whatis whereis
whereis (1) - locate the binary, source, and manual page files for a command
but first you have to do an update for whatis database ..don't get banic all you have to do is type the following command and it will do it for you while you drinking your coffe
# makewhatis
so as i said to use this command after updating it's database all what you have to do is write whatis and the programme
name or command name you want to know it and be this i finshed my lesson and see you in the next lesson

Get GNU / Linux
News Feed
Blogs
Event Photos
Screen Shots
Polls
Popular Content
Members
Search
Wall Papers