Posts Tagged ‘Help’

Some Very Cool Linux Commands to get Complex Things Done Easily

Tuesday, February 17th, 2009

image

  Linux is ultimately the most versatile and Powerful OS ever built and that is why it attracts hackers and tech savvy guys  lot, now I have collected some Special linux commands that will help you do complex things easy and will also help you save your precious time

 

 

 

To Serve Current Directory on Web without Installing a Web Server – Use it Share your Files to your friend over the Web

$ python -m SimpleHTTPServer 8080

This Command will serve the current directory tree at http://$HOSTNAME:8080/

So if you wished to share some files with your friend over the Internet streaming them right from your pc then just run this script, check your IP using whatismyip.com and then ask your friend to open,

http://Your IP:8080/  for example http://123.34.56.12:8080/  and he/she can copy your files immediately

 

To Run a Linux Command at a Given Time

echo “ls -l” | at midnight

OR

echo “ls -l” | at 10am Jul 21      

Now , the first command will do a “ls -l” at  midnight  , and to run any other command at a specific time just type in the command then the pipe operator(|) follwed by “at time”

Like the second command will do a “ls -l” at 10 am on july 21st

(more…)