romka@linux

May 27, 2010

useful tar command with find files and recursive folders

Filed under: command line — romka @ 1:01 pm

find dir -name ‘wildcard_search‘ | tar -cvjf filename.tar.bz2 -T – –no-recursion

August 4, 2009

Powering down usb harddrive in ubuntu

Filed under: Status, command line — Tags: — romka @ 8:52 pm

After looking for a solution for a while I’ve found a way to powerdown external USB harddrive:

sudo sdparm –command=stop /dev/sdb

Full script for Jaunty:
sudo udevadm control –stop-exec-queue
sudo sdparm -6 -f –command=stop $1
read -p “Unplug the media and press any key to continue”
sudo udevadm control –start-exec-queue

March 23, 2009

My favorite command line tools

Filed under: Status, command line — Tags: — romka @ 8:52 pm

cone – excelent e-mail client

centerim-utf8 – instant messanger

w3m – web browser

cplay is an easy tool to play music. Have to rememeber to use z to pause, a to add files/folders to play list and tab to switch between directory/playlist…

There is also a powerful pair of mpd / ncmpc to play music from database but I’m sort of using Ipod for this )))

Powered by WordPress