Table of Content

Return to Index Page
Feedback

I have a number of interesting topics in the old version of this site. Old tips and tricks will not be moved here since I would like to keep new stuff separately from the old one.

Mounting Remote Directory via SSH
You need to install fuse package to have secure shell filesystem support.
sshfs remoteuser@remotehost:/path/to/remote_dir local_mountpoint
Then, use this command to unmount remote directory:
fusermount -u local_mountpoint

Quick & Dirty Comparison of 2 Directories
Today I had a rather daunting task. I recovered a directory with important documents from my hard drive with damaged partition map. Although files should be OK, who really knows if that is true (there are over 5000 of them). On the other hand, I have a backup made some time ago. So I wish to stay with recovered version which has all new stuff (which I can check manually), but verify if any of older files (last modified more then 1 month ago) may become corrupt. So, basically, I am need to recursively compare 2 directories. Its simple as 1-2-3.
Just run in terminal "
diff -r -q folder-1.1/ folder-2.2/". "-r" means "recursive", "-q" - brief, report only whether the files differ, not the details of the differences. Sample:
diff -r -q folder-1.1/ folder-2.2/
Only in folder-2.2/: 1.txt
Only in folder-1.1/: 1.txt~
Only in folder-1.1/: .emacs2
Files folder-1.1//kitchin.txt and folder-2.2//kitchin.txt differ


Converting Audio Files on Linux (inc. Monkey Audio APE)
Probably (almost) everyone had this problem - a mess of all sorts of audio files, especially these annoying APE (Monkey Audio). There are a number of handy commercial/shareware utilities available, some good, some so so, but all of them run on Windows or Mac (although most built around open source libraries, originated from Linux). It is not a big problem for die-hard Linux junkie to use command-line tools, however, it is kinda geeky and beyond understanding of average users. Fortunately, there is simple Swiss army knife solution for this purpose - excellent K3B CD authoring program. In order to K3B to be able to handle certain audio formats you will need to install corresponding support libraries. For example, on OpenSuSE Linux for APE Audio Monkey add the following: libmac2.rpm + k3bmonkeyaudioplugin.rpm (RPM/DEB package names may be different, depending on particular distribution, search is your tool). Then, create new audio CD project, drop tracks, and then run Project -> Convert Tracks. That's all, folks!

Return to Index Page