Category: Command Line

Clears the yum cache

Clears the yum cache yum clean all

Linux Command to get the Sensex

Another method to get the sensex. This method is more realiable in working – but the data might be a…

Execute JavaScript files using Rhino

The command to execute a javascript file using rhino. java -jar /path/to/custom_rhino.jar JS_File.js Get Custom Rhino(From Dojo Library)

Install Rhino

Installing Rhino(Javascript interpreter created in java) on Fedora 7 sudo yum install rhino-manual rhino-demo rhino

Concatinate Files in Linux

This is how you concatinate multiple files in linux… cat file1 file2 file3 > final_file

Basic Screen Shortcuts(Linux Terminal Tool)

Some important screen shortcuts Create New : Ctrl+A c Next Screen: Ctrl+A Space Previous : Ctrl+A Backspace Show Screen List:…

Command to Print Until Regular Expression

Print a file until a regular expression is matched. cat file.txt | perl -pe “exit if(/Thats all/)”

Listing all Files Recursively in Windows

Save the list of all files in a folder in windows – recursively. dir /s /b>FileList.txt [tags]command, dir, directory, folder,…

Get URL Headers using CURL

Show the headers of an URL using Curl curl http://example.com -I

Search Text in a Folder using grep

Search for a specific text in a folder using grep grep “fetchFeedPacksCustomize()” *.js [tags]grep,search,text,folder[/tags]