Saturday, August 29, 2009

Useful Linux Commands

A place to post useful Linux operations in case of organic memory failure:

Convert audio files with bitrate (-b) and sample rate (-ar) options:
avconv -i input.wav -b 64k -ar 41000 output.mp3

Determine which services are running:
service --status-all

Determine Distro Release Version:
lsb_release -a

Store a data CD on your filesystem (this is not one I forget but it pertains the following):
dd if=/dev/cdrom of=/some/dir/data.iso

Mount your virtual data CD:
sudo mount -t auto -o loop /some/dir/data.iso /mnt/vrtl-cd

Check your Linux software RAID status:
cat /proc/mdstat

Ext3 Filesystem Check
sudo umount /SomeFileSystem
sudo screen fsck.ext3 -v -f -p -D -C0 /SomeFileSystem

No comments: