Ohm, on Feb 11 2007, 04:31 PM, said:
touch file
![]() |
|
| Guest Message © 2012 DevFuse | |
Posted 17 April 2008 - 02:49 PM
root@nato [/]# cd /etc/ssl root@nato [/etc/ssl]# cd / root@nato [/]# cd - /etc/ssl root@nato [/etc/ssl]# cd - / root@nato [/]#
Posted 17 April 2008 - 08:46 PM
mirrorshades, on Apr 17 2008, 01:49 PM, said:
root@nato [/]# cd /etc/ssl root@nato [/etc/ssl]# cd / root@nato [/]# cd - /etc/ssl root@nato [/etc/ssl]# cd - / root@nato [/]#
Posted 19 April 2008 - 10:24 AM
mirrorshades, on Apr 17 2008, 11:49 AM, said:
root@nato [/]# cd /etc/ssl root@nato [/etc/ssl]# cd / root@nato [/]# cd - /etc/ssl root@nato [/etc/ssl]# cd - / root@nato [/]#
Posted 19 April 2008 - 04:41 PM
sudo !!
echo $?
cd ~
This post has been edited by .solo: 19 April 2008 - 04:44 PM
Posted 11 June 2008 - 10:14 PM
$ yum search LWP::Simple No Matches found $ yum search perl-LWP-Simple No Matches found
$ yum whatprovides 'perl(LWP::Simple)' perl-libwww-perl.noarch : A Perl interface to the World-Wide Web
Posted 07 July 2008 - 01:28 PM
$ curl urlthatdoesntexist.com curl: (6) Couldn't resolve host 'urlthatdoesntexist.com' $ echo $? 6
$ curl www.google.com > /dev/null % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 6538 0 6538 0 0 18957 0 --:--:-- --:--:-- --:--:-- 55232 $ echo $? 0
$ pwd /home/baphomet $ pushd / / ~ $ pwd / $ popd ~ $ pwd /home/baphomet
This post has been edited by Baphomet: 07 July 2008 - 01:32 PM
Posted 10 July 2008 - 10:00 PM
history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
Posted 10 July 2008 - 10:55 PM
Spyril, on Jul 10 2008, 11:00 PM, said:
history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nrhistory | awk '{print $2}' | sort | uniq -c | sort -nr | head
Posted 24 July 2008 - 09:11 PM
localhost:~$ cat read.sh
#!/bin/bash
workingdir='/tmp/test'
cd $workingdir
array=(`ls`)
len=${#array[*]}
i=0
while [ $i -lt $len ]; do
echo "${array[$i]}" >> $HOME/output.txt
let i++
done
cat $HOME/output.txt | while read line; do
ls $workingdir/"${line}"/cur/* >> $HOME/result.txt #change this to ls $workingdir/"${line}"/cur/* | xargs rm -rf
doneQuote
Posted 25 July 2008 - 12:36 AM
Posted 25 July 2008 - 05:55 PM
Ohm, on Jul 25 2008, 12:36 AM, said:
Posted 25 July 2008 - 10:34 PM
Alk3, on Jul 25 2008, 06:55 PM, said:
Ohm, on Jul 25 2008, 12:36 AM, said:
Posted 12 October 2008 - 09:50 PM
Posted 13 October 2008 - 01:51 PM
#!/bin/sh
for i in `/sbin/ifconfig -a|grep 'inet addr'|awk -F":" '{print $2}'|awk '{print $1}'`;do host $i;done 2>/dev/null
Posted 23 April 2010 - 06:50 AM
Ohm, on 25 July 2008 - 10:34 PM, said:
Alk3, on Jul 25 2008, 06:55 PM, said:
Ohm, on Jul 25 2008, 12:36 AM, said:
find . -name '*' -print0 | xargs -0 rm
Posted 21 November 2010 - 08:37 PM
[n3xg3n@enigma ~]$ wgt http://www.whatismyip.org bash: wgt: command not found [n3xg3n@enigma ~]$ ^wgt^wget wget http://www.whatismyip.org --2010-11-21 20:35:48-- http://www.whatismyip.org/ Resolving www.whatismyip.org...