As before, brief description, code, done.
just on the off chance you totally screw up your $PATH.
emergency 'ls'
Code: Select all
echo *
Code: Select all
echo *
Code: Select all
sudo !!
Code: Select all
wux@chauvin/im/so/deep/in/the/files/i/dont/wann/have/to/type/this/again$ pushd /oh/my/dang/why/so/many/directory/levels
wux@chauvin/oh/my/dang/why/so/many/directory/levels$ pushd
wux@chauvin/im/so/deep/in/the/files/i/dont/wann/have/to/type/this/again$
Code: Select all
cd -
Code: Select all
pushd -2
Code: Select all
dirs -p
Code: Select all
whoami
Code: Select all
calendar
Code: Select all
cd /some/ultra/long/path/to/some.file
cp [Alt] + [.] /new/path/
Code: Select all
cp /some/ultra/long/path/to/some.file /new/path/
Code: Select all
<package> --version
Code: Select all
ncmpcpp --version
ncmpcpp version: 0.5.10
optional screens compiled-in:
- tag editor
- tiny tag editor
- artist info
- outputs
- visualizer
- clock
encoding detection: enabled
built with support for: curl fftw ncurses taglib unicode
Code: Select all
dpkg -p <package>
Code: Select all
dpkg -p conky
Package: conky
Priority: extra
Section: oldlibs
Installed-Size: 36
Maintainer: Vincent Cheng <[email protected]>
Architecture: all
Version: 1.9.0-3
Depends: conky-std | conky-cli | conky-all
Size: 34110
Description: highly configurable system monitor (transitional package)
Conky is a system monitor that can display just about anything,
either on your root desktop or in its own window.
Conky has many built-in objects, as well as the ability to execute
external programs or scripts (either external or through built-in
lua support).
.
This is a dummy package to ease transition to the new packaging scheme.
It may be safely removed after upgrade/installation.
Homepage: http://conky.sourceforge.net/
Of course, aliases are exactly for this. I have a full list of them. Though it has one disadvantage, sometimes you forget the real commands. :)GekkoP wrote:I got my own aliases for those: s for "shutdown -h now", r for reboot. I know, lazy bastard.
Code: Select all
:>filename
+1 for #11 here. Use it all the time.machinebacon wrote:Before I duplicate stuff: http://www.ukuug.org/events/linux2003/papers/bash_tips/
Code: Select all
command_which_might_hang & cmdpid=$!
(sleep 2; kill $cmdpid 2>/dev/null && cleanup_the_mess) &
Code: Select all
selfpid=$$
(:>/path/to/fifo) & test_pipe=$!
(sleep 2; kill $test_pipe 2>/dev/null && kill -n 13 $selfpid) &
Code: Select all
time cat