rm `ls | grep -v 'txt$'`
-or-
rm `find . -type f | grep -v 'txt$'`
For file types
rm -rf `ls | grep -v '.gz$'`
-or-
rm `find . -type f | grep -v 'txt$'`
For file types
rm -rf `ls | grep -v '.gz$'`
Share tips I like from different web pages and my own experiments
make. Install manually by copying to the directory of your
choice.
$ ls *.gz my-corrupted-backup.tar.gz $ gzrecover my-corrupted-backup.tar.gz $ ls *.recovered my-corrupted-backup.tar.recovered $ cpio -F my-corrupted-backup.tar.recovered -i -vNote that newer versions of cpio can spew voluminous error messages to your terminal. Also, cpio might take quite a long while to run.
ping -c 5 google.com[sibin@localhost]$ ping -c 5 google.com
PING google.com (74.125.235.8) 56(84) bytes of data.
64 bytes from sin01s04-in-f8.1e100.net (74.125.235.8): icmp_req=1 ttl=54 time=234 ms
64 bytes from sin01s04-in-f8.1e100.net (74.125.235.8): icmp_req=2 ttl=54 time=45.7 ms
64 bytes from sin01s04-in-f8.1e100.net (74.125.235.8): icmp_req=3 ttl=54 time=88.1 ms
64 bytes from sin01s04-in-f8.1e100.net (74.125.235.8): icmp_req=4 ttl=54 time=45.7 ms
64 bytes from sin01s04-in-f8.1e100.net (74.125.235.8): icmp_req=5 ttl=54 time=46.2 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
rtt min/avg/max/mdev = 45.758/92.011/234.135/72.918 ms Now optimize the ping command:$ ping -c 5 -n -i 0.2 -W1 google.com
[sibin@ast-wks-069 ~]$ ping -c 5 -n -i 0.2 -W1 google.com
PING google.com (74.125.235.9) 56(84) bytes of data.
64 bytes from 74.125.235.9: icmp_req=1 ttl=54 time=46.4 ms
64 bytes from 74.125.235.9: icmp_req=2 ttl=54 time=46.4 ms
64 bytes from 74.125.235.9: icmp_req=3 ttl=54 time=45.7 ms
64 bytes from 74.125.235.9: icmp_req=4 ttl=54 time=45.5 ms
64 bytes from 74.125.235.9: icmp_req=5 ttl=54 time=49.5 ms
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 803ms
rtt min/avg/max/mdev = 45.569/46.762/49.541/1.433 ms
traceroute -n -w SECONDS -q NUMBER host
$ traceroute -n -w 3 -q 1 www.google.com$ traceroute -n -w 3 -q 1 -N 32 www.google.com$ traceroute -n -w 3 -q 1 -N 32 -m 16 www.google.com$ sudo yum install lvm2
$ sudo modprobe dm-mod
$ sudo vgscan
$ sudo vgchange -ay VolGroup00
$ sudo lvs
$ sudo mkdir /mnt/fcroot
$ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user