Monday, July 13, 2009

Linux Funny Commands


If you want to know what is the use of cd command just type in console

[sujith@odcclient6 bin]$ whatis cd
cd (1p) - change the working directory
cd [builtins] (1) - bash built-in commands, see bash(1)

NOTE: Some times you may have to build the database first by running "/usr/sbin/makewhatis".

Here comes the fun :

[sujith@odcclient6 bin]$ cd /usr/bin
[sujith@odcclient6 bin]$ ls | xargs whatis | less

[ls = list directory contents, xargs = build and execute command lines from standard input]

No comments:

Post a Comment


Related Posts with Thumbnails