Safe Way to Remove a File

sf WWW sf WWW http dsl.org comp tinyutils Once a file is removed, it is permanently deleted and there is no command you can use to restore it you cannot undelete it. (Although if you can unmount the filesystem that contained the file immediately after you deleted the file, a wizard might be able to help reconstruct the lost file by using grep to search the filesystem device file.) A safer way to remove files is to use del, which is simply an alias to rm with the -i' option. This specifies for...

Converting Images between Formats

sf WWW Use convert to convert the file format of an image. Give the name of the file to convert as the first argument, and the destination file as the second argument. When you convert a file, the original is not altered. To specify the file type to convert to, use that file type's standard file extension in the file name of the converted file. To convert the JPEG file phoenix.jpeg' to a PNG image, type convert phoenix.jpeg phoenix.png RET This command converts the JPEG image phoenix.jpeg' to...

Viewing an Image in X

sf WWW To view an image in X, use display, part of the ImageMagick suite of tools. It can recognize many image formats, including FlashPix, GIF GIF87, Group 3 faxes, JPEG, PBM PNM PPM, PhotoCD, TGA, TIFF, TransFig, and XBM. display takes as an argument the file name of the image to be viewed, and it displays the image in a new window. To view the file sailboat.jpeg', type display sailboat.jpeg RET This command displays the image file in a new window The mouse buttons have special meaning in...