Quantcast
Channel: Command Line – Digerati Consulting
Browsing latest articles
Browse All 10 View Live

Mac OS X (10.6, 10.7, 10.8) Disk Utility repair failed

If Disk Utility is unable to repair hard drive, then try booting from any install DVD or USB drive. Then open terminal from the Utilities menu. When terminal opens, type: fsck_hfs -rf /dev/disk0s2 Your...

View Article



Expand tar file from Linux command line

If you have a file.tar.gz that you need to expand from the command line, type the following: tar xfv file.tar.gz

View Article

rsync via SSH

To copy files from one server to another via ssh: First login to the destination server and cd to the directory that you want to copy files into. Then type rsync -ave ssh...

View Article

Use rm to delete a directory

To delete a file or directory in terminal (command line) use the rm command. Here is how to delete an entire directory: rm -dfr directory OPTIONS -d, –directory unlink FILE, even if it is a non-empty...

View Article

Use terminal to delete all hidden files on a mac

I recently came across a client’s computer that had a tremendous number of hidden files that were causing problems. I tried many different ways to delete these, unsuccessfully. Unfortunately, there...

View Article


Enable mounting of remotedisk remote CD/DVD on any unsupported mac

If you are like me, and your CD/DVD has stopped working on an old mac, you can use CD/DVD sharing to access the drive on another computer. Unfortunately, if your old computer originally had a CD/DVD...

View Article

Upload files with ssh / scp in Linux

The following code will transfer myfile.zip to the folder ‘myfolder’ on the server: Code: scp /home/username/documents/myfile.zip username@myserver.com:/home/username/myfolder/ scp = Linux command to...

View Article

Deleting/viewing mail in postfix queue (mailq)

Postfix stores mails in a queue before sending it. Postfix has a command line called ‘postsuper’ which can be used to delete unsent mail from the queue. Before removing mail from the queue it is good...

View Article


Fix “HTTP request length 134926 (so far) exceeds MaxRequestLen” error on...

If you get a 500 error in a webpage with apache webserver and fastcgi, take a look into the apache error.log file. This can either be the global error.log or the error.log of the website where you got...

View Article


Amazon AWS EC2 Automatic Snapshot Daily Cron Job

There seems to be very poor documentation about setting up an automatic backup, daily snapshot with Amazon AWS EC2. I am currently running Ubuntu 14.04 with ISPConfig. Here is how to setup a daily cron...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images