commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
if you lost your moduli file in openssh server side you need generate new one with this command then test if the number generated can be used with ssh-keygen -T moduli-2048 -f /tmp/moduli-2048.candidates
If you set noclobber to on, bash won't allow redirection to overwrite existing files .
set -o noclobber command turn the option on (default it s off ) .
You can still append information but not overwrite the file .to turn it back off use : $ set +o noclobber .
I use it because i overwrite a file by accident , after thought , content of the file was very important , creating a one more file mean nothing for my hard disk (we are not anymore on the 64 k memory time) , but content of file is far much important . What we call exeprience :(
just replace the number 5 with the variable you want , and the xpenguins software with the one you want
Knowing when a filesystem is created , you can deduce when an operating system was installed .
find filesystem device (/dev/) informations by using the cat /etc/fstab command.
The 1440 is the number of bytes, and the A: specifies the floppy drive.
-t option tells the system to look for a msdos filesystem
The /dev/fd0 is your floppy drive ( This may be different for you check /dev folder to confirm)
/mnt/floppy is the point where you want to mount the device to
require mimms package
need imagemagick package
Detect video size automatically , usually the flv video from youtube , dailymotion are in the /tmp directory . Just launch a video player or an ls -lh on it to find the one you want to convert.
it does provide much more information , the owner , group , the size in byte , and the last modified time a file or directory was
ls -al : list all in long format
this is a reference to Antoine de St. Exupery's "The Little Prince"
require the pdftk package
Require the pdftk package
It ll split each page in your pdf file , into a new pdf file and report info on doc_data.txt
require the tex4ht package . You can open the file with openoffice , I use it much for correct my spelling and grammar .
set directly the wallpaper on windowmaker , use this command with display of imagemagick :)
mencoder mf://filemask -mf
option availble for mf :
* w=value : the width of the output, by d?fault : autodetected
* h=value : height of the output, by default : autodetected
* fps=value : framerate of the output, by default : 25
* type=value : file format type input , avaible: jpeg, png, tga, sgi