Check These Out
$ # 4 cores with 2500 pi digits
$ CPUBENCH 4 2500
$.
$ every core will use 100% cpu and you can see how fast they calculate it.
$ if you do 50000 digitits and more it can take hours or days
Simply changes the wallpaper of xfce4 from the command line. Not for multiple displays.
this takes every jpg in the current directory and changes the exif data for manufactur and model. in my case i change it to LOMO LC-A because my scanner puts his data in there :]
Run local scripts on remote server. "-T Disable pseudo-tty allocation"
Find out which RPMs were installed on a particular date.
These would (naturally) include update RPMs.
This example shows searching for "Thu 05 Mar" (with grep).
Alternatively, pipe it to less so you can search inside less (with less's neat text highlighting of the search term):
rpm -qa --queryformat '%{installtime} \"%{vendor}\" %{name}-%{version}-%{release} %{installtime:date}\n' | less # (this example) search term: Thu 05 Mar
Bash can accept '0x' and '0' notation for hexidecimal and octal numbers, so you just have to output the values.
Set a bookmark as normal shell variable
$ p=/cumbersome/path/to/project
To go there
$ to p
This saves one "$" and is faster to type ;-) The variable is still useful as such:
$ vim $p/
will expand the variable (at least in bash) and show a list of files to edit.
If setting the bookmarks is too much typing you could add another function
$ bm() { eval $1=$(pwd); }
then bookmark the current directory with
$ bm p
You can use this to directly dump from machine A (with dvd drive) to machine B (without dvd drive) . I used this to copy dvd using my friend's machine to my netbook. Above command is to be issued on machine B.
Advantages :
1) No wasting time dumping first to machine A and then copying to Machine B.
2) You dont need to use space on Machine A. In fact, this will work even when Machine A doesnt have enough hdd space to dump the DVD.
Use -C ssh option on slow networks (enables compression).
you can replace "dd if=/dev/dvd" with any ripping command as long as it spews the iso to stdout.