Quantcast
Channel: terminal – Digerati Consulting
Browsing latest articles
Browse All 6 View Live

Extract .zip file (unzip) via unix command line

To extract a zip file into current directory, enter this code in your terminal window. # unzip filename.zip

View Article


Zip only some files (jpg) via unix command line

To create a new zip archive ‘filename.zip’ including only select files, you can use an expression argument after the command. Enter the following in your terminal to compress all jpg fies in current...

View Article


Delete folder and contents with rm via unix command line

To delete a folder and it’s contents, enter the following in your terminal # rm -dfr foldername Analysis of the above command -d remove folders -f remove the files without prompting for confirmation or...

View Article

Rename folder cp via unix command line

To rename a file or folder, enter the following in your terminal: # cp oldfilename newfilename # cp oldfoldername/ newfoldername/

View Article

What version of Apache am I running?

Httpd is the Apache HyperText Transfer Protocol (HTTP) server program. To display the current apache version, type the following in your terminal window: # httpd -v Sample output: Server version:...

View Article


Display date and time via unix command line

To display the date and time, enter the following in your terminal: # date Sample output: [myserver:~] username$ date Sunday, April 22, 2012 8:29:14 AM GMT

View Article
Browsing latest articles
Browse All 6 View Live