Friday, July 3, 2009

Ballju Weekly Info Center [week 1]

Introduction


As well as having a commentary on the playstation store update and a weekly what-songs-did-I-like-and-get list I decide to have a weekly article about helpful things. One thing that I noticed that most of the articles that visitors like you came for were info post so I decided to do more:)


Terminal Commands take 1


This is a list Terminal command that I use went I go-to-the-vampire-side called Terminal.




Command: drutil eject tray

What it does/Why I use it: This is very helpful when a disc is stuck in the tray and in the case osx it save the the user from having to restart and press the mouse button to eject the disc



Command: cd -

What it does/Why I use it: This changes to the previous working directory.


Command: lsof -i tcp:[number of port] example: lsof -i tcp:8080

What it does/Why I use it:
This finds the process id holding on to a port. Very helpful when finding out if a port is in use.


Command:
sudo !!

What it does/Why I use it: Run the last command as root.Useful when you forget to use sudo for a command. "!!" grabs the last run command.



Command:curl -u user:pass -d status="Tweeting from the shell" http://twitter.com/statuses/update.xml

What it does/Why I use it: Update twitter via curl, I know its not very useful but it is kind of fun to do:)

No comments:

Post a Comment