Back-Flip
IT tips and tricks ;)
Windows / Linux / Cisco
Showing posts with label
bash
.
Show all posts
Showing posts with label
bash
.
Show all posts
Tuesday, March 29, 2011
Bash - simple "for loop"...
This may be usefull, it's a simple loop in BASH
#!/bin/bash
for hostname in $(cat text.txt); do
host $hostname
done
Just substitute the "text.txt" with a file containing the hosts.
.
.
Thursday, December 18, 2008
Linux - Find BIG files
A little tip for linux:
To find large files on a system we can do:
$ find / -type f -size +20000k -exec ls -lh {} \;
We can use other filesystem like /home or /tmp
Older Posts
Home
Subscribe to:
Posts (Atom)