Explain: {,} in cp or mv Bash Shell Commands

I often see commands as follows posted on blog or forums cp /etc/httpd/httpd.{,.bakup} OR mv resume{z,}.doc What is the purpose of {,} in Linux and Unix shell commands?   {} is nothing but brace expansion…

FreeBSD Show Disk Quota Limits Command

I ‘m a new FreeBSD unix user and backup file on a FreeBSD based unix server. How can I check quota limits and disk usage using shell prompt on a FreeBSD based system?   You…

curl Command Resume Broken Download

I know wget can resume a failed download. I am on a Mac OS X and do now want to install wget command. How can I resume a failed download using curl command on Linux…

How To: Update gcutil / gcloud Components On a Linux / Unix / OS X

H ow can I update for Google Cloud SDK components on a Linux or OS X unix based systems?   The easiest and recommended way is to use gcloud command to update various Google cloud…

Minify and Compress CSS & Javascript Files At a Linux/Unix Shell Prompt

How do I minify and compress CSS & JS files on Linux or Unix-like system using shell prompt on my server? How can I minify JavaScripts and stylesheets at shell promot so they can download…

Linux / Unix: chroot Command Examples

I am a new Linux and Unix user. How do I change the root directory of a command? How do I change the root directory of a process such as web-server using a chroot command…

How To Setup SSH Keys on a Linux / Unix System

I recently read that SSH keys provide a secure way of logging into a Linux and Unix-based server. How do I set up SSH keys on a Linux or Unix based systems? In SSH for…

Linux/Unix: Find Command Ignore Case Insensitive Search

I am a new Linux and Unix-command line user. I am using find command to search file called “fooBar.conf.sample” in my home directory. I do not know the case, it could be uppercase, lowercase, or…

X11 forwarding request failed on channel 0 Error and Solution

I am a new Linux server user. I need to tunnel X over ssh. I type the following command from OS X Unix terminal to login into far_away_machine (a centos server): ssh -X -o options…

Unix: Find Directory Name From Path

I am a new Unix shell programer. How can I extract the directory name from a full path (say /nas01/data/backups/file.tar.gz)? How do I get directory name from its path on a Linux or Unix-like system?…