commands
Hi,
Can anybody tell me what does the below commands do? 1.ldd $(which vsftpd) | grep libwrap 2.strings $(which vsftpd) | grep hosts Thanks in advance Veerendra |
RTFM: man ldd, man strings, man which.
|
ldd - print's shared library dependencies
which vsftpd -- gives its binary parh---/usr/sbin/vsftpd grep libwrap-- searches for libwrap (from other lists) same way: strings - print the strings of printable characters in files. |
commands
Hi Prayag,
Thanks for your reply...can u pls tell me what does $ symbol do? Thnaks Veerendra |
Hi,
Any thing enclosed in $( ) will be treated as command to execute. $( ) is same as enclosing in back quotes ` ` Lets take this example Here hostname inside echo is just treated as text to be displayed. Code:
[user@CDC ~]$ echo "Host name is hostname" Code:
[user@CDC ~]$ echo "Host name is $(hostname)" |
Hi,
Above post explained everything.i.e usage of $ Would suggest you to refer this short guide to quickly learn basics of shell scripting: http://147.188.192.43/documentation/...xscripting.pdf |
veeruhs
Check this out: http://tldp.org/LDP/abs/html/internalvariables.html and http://tldp.org/LDP/abs/html/index.html |
commands
Hi,
Thanks for the reply |
All times are GMT -5. The time now is 09:10 AM. |