Posts

Showing posts from 2014

unix useful commands

Files and DIrectories: chg rp - change file group file - Determine file type more - Display data in paginated form. rm - Remove (Delete) filename rmdir - Delete an existing directory provided it is empty. touch - Update access and modification time of a file. Manipulating data : awk - Pattern scanning and processing language expand - Expand tabs to spaces wc - Count words, lines, and characters Compressed Files : compress - Compress files gzip - GNU alternative compression method zcat - Cat a compressed file zdiff - Compare compressed files Getting information : apropos - Locate commands by keyword lookup whatis - Search the whatis database for complete words. tftp - Trivial file transfer prog ram parcel - Send files to another user javac - JAVA compiler sqlplus - Run the Oracle SQL interpreter chown - Chang e owner date - Print the date determin - Automatically find terminal type du - Print amount of disk usage ps - Display the status of current proce...
http://www.tecmint.com/8-pratical-examples-of-linux-touch-command/ If you would like to create a file with specified time other than the current time, then the format should be. # touch -t YYMMDDHHMM.SS tecmint # touch -t 201212101830.55 tecmint How to Create Multiple Files # touch sheena meena leena

curl

CURL is simply awesome because of the following reasons... CURL is an easy to use command line tool to send and receive files, and it supports almost all major protocols(DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS,  IMAP, IMAPS,  LDAP,  LDAPS,  POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP) in use Can be used inside your shell scripts with ease Supports features like pause and resume of downloads It has around 120 command line options for various tasks It runs on all major operating systems(More than 40+ Operating systems) Supports cookies, forms and SSL Both curl command line tool and libcurl library are open source, so they can be used in any of your programs It supports configuration files Multiple upload with a single command Progress bar, rate limiting, and download time details ipv6 support Download a Si ngle File The following command will get the content of the URL and display it in the STDOUT (i.e on your termina...