Start Blogaria Bored bsgen cconf Cookies CopyForward CyclicLog Dialwhatever DNSBalancer fch HammerServer jpeginfo kalk Lectures Microproxy msc Nasapics PGPkey SafeEdit Simple listserv Wallpapers
A little movie
An animation can't be properly rendered. You have probably a too old version of Flash player. |
mscMSC is my collection of missing shell commands - stuff where I feel comfortable when it's at my fingertips on a Unix commandline, and where I feel very naked when I don't have it! Have you ever been asked by a customer to take care of a Unix system, and then you log in, and.. aarrgh - the commandline just won't behave how it should? Well, enter msc: a set of "missing commands" that are very easily installed on new systems and very handy to have. As with most stuff on my site: feel free to use MSC. It's distributed without cost, and without warranty - use at your own risk. Licensing GPLV3 applies: if you re-distribute it, you must do so in source format, and with the license intact. Finally - if you have good additions, you're of course free to put them in, but I'd appreciate a holler!How to get it
What does it doHere's a quick description of what's in the MSC package. The following list shows the commands that you normally type (and not the setup-commands like shown in the listing above).
Full "usage" informationHere's what msc reports when you run it without any arguments:
These are the Missing Shell Commands V1.09
Copyright (c) Karel Kubat <karel@kubat.nl>. Visit http://www.kubat.nl/ for
more information.
Available commands:
l, d short, long directory listing
lt, dt short, long listing by date
lx, dx short, long directory listing by extension, e.g. dx c (lists *.c)
rx remove files by extension, e.g. rx o a (removes *.o *.a)
up1, up2 cd 1 or 2 up, use as: eval `up1` and: eval `up2`
to set up the aliases - and --, run:
eval `up_aliases`
gd goto-directory, use as: eval `gd /new/directo/ry`
to set this up as a bash function, run:
gd_function > /tmp/$$; . /tmp/$$; rm /tmp/$$
xd fast cd, use as: eval `xd ulb` (ulb is short for
/usr/local/bin or whatever matches)
to set this up as a plain xd bash command, run:
xd_function > /tmp/$$; . /tmp/$$; rm /tmp/$$
tarc create tar archive, supported: .tar, .tar.gz, .tar.bz2
tart list tar archive
tarx extract tar archive
path set shell path, use as: eval `path d1 d2 d3`, sets standard dirs
and adds to the path d1,d1/bin,d1/sbin and so on
ps1 set bash prompt, use as: eval `ps1`
x start xterm, use as: x user@host, default: thisuser, @localhost
xoff turn off X ($DISPLAY), use as: eval `xoff`
xon turn on X ($DISPLAY), use as: eval `xon`
to set up xon and xoff as aliases, run
eval `xoff_xon_aliases`
e, ew start editor (async or wait mode)
ep edit and reload bash profile, use as: eval `ep`
to set up ep as a bash command, run
eval `ep_alias`
cpf copy-forward, if you don't have cp -n
ftail like tail -f, if you don't have it
ip shows IP addresses
ruler displays a 80-column ruler
less less-pager in a new window
man man display in a new window
m make, with stdout/stderr to less
perldoc Perl documentation in a new window
psg like 'ps ax' but looks for certain commands
while1 run commands every 1 second (or 5 sec with while5), use as
while1 cmd1 cmd2 cmd3
env shows (parts of) environment, or invokes a command, eg. "env home"
shows the home directory, "env perl" invokes perl
beep sound the alarm
hex hexdumps a file (use - for stdin)
ds case-insensitive find, avoids .svn, CVS etc.
loglimit pipe that writes limited logs, use as:
cmd | loglimit FILE SIZE HISTORYFILES
b64enc encode into base64 format (either cmdline arguments or stdin)
b64dec decode from base64 format (either cmdline arguments or stdin)
|