Check These Out
swap out "80" for your port of interest. Can use port number or named ports e.g. "http"
Will redirect output of current session to another terminal, e.g. /dev/pts/3
Courtesy of bassu, http://www.commandlinefu.com/commands/by/bassu
Kills a process matching program. I suggest using
$ pgrep -fl program
to avoid over-killings
Nice the following: kills all bash process owned by guest
$ pkill -9 -f bash -u guest
I used to use the Firefox "View page info" feature a lot to determine how stale the web page I was looking at was. Now that I use mostly Chrome I miss that feature, so here is a command line alternative using wget. The -S says to display the server response, the --spider says to not download any files/pages, just fetch the header. The output goes to stderr, so to grep it you use 2>&1 to combine the stderr stream with stdout, the pipe that to grep for Last-Modified.
You can use curl instead if you have it installed, like this:
$ curl --head -s http://osswin.sourceforge.net | grep Mod
This is a quick line to stream in the latest offerings of your favorite netcasts/podcasts. You will need to have a file named netcast.txt in the directory you run this from. This file should have one and only one of your netcast's/podcst's url per line.
When run the line grabs the offering on the top of the netcast/podcast stack and end it over , quietly, to vlc.
Since I move around computers during the day I wanted an easy way to listen to my daily dose of news and such without having to worry about downloading to whatever machine I am on. This is just a quick grab and stream of whats current.
Future plans... have the list of netcasts be read from the web. possibly an rss or such. I use greader so there might be a way to use it as the source so as not to have to muck with multiple lists
Using this command you can track a moment when usb device was attached.
NB not 'namei -m .', as it slices the path you give it.