[Chester LUG] Some cool commands you may not have known about
Stuart Burns
stuart.james.burns at gmail.com
Sun Feb 28 22:42:03 UTC 2010
Hiya everyone,
I just thought i'd drop a quick email to let you know about some awesome
commands I picked up on my RH course.
Firstly lets start simple: mtr
You've done traceroute and ping, but this is both in one tool, and on
steroids. For example try mtr www.google.com. This is awesome as it shows
firstly the route and also all your network choke points are, and how bad
they are. Its in RH, Centos, Fedora and available for most distros.
Secondly, watch.
How often have you done a large cp command and waited, and waited. If you
do it, set up another console and do watch df -h. It will basically repeat
df -h every two seconds, so you can see what is happening with disk space.
Basically watch will allow you to automate a command! You can change the
time interval.
Thirdly screen.
Rather than having loads of terminal windows open, use screen. It will allow
you to run many consoles within one window. Shortcut keys allow you to move
between the screens.
Fouthly, partprobe
You know when you create a new disk or partitions and you have to reboot,
well this funky app, run after using fdisk, will re read all the new
partitions and make them all available. Saves a reboot.
Old command, new command.
lsof is so old, use fuser. It does the same thing but is more useful ;)
If I think of any others, I'll let you know!
Regards
Stuart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/chester/attachments/20100228/6b7da61e/attachment.html>
More information about the Chester
mailing list