Linux / Unix: Shell Script Find Out In Which Directory Script File Resides

I need to find out in which directory my bash script resides so that I can read config file called .backup .ignore .target. For example, if my script resides in >/home/foo/script.sh, I need to read…

HowTo: OS X Take a Screenshot On My Mac Desktop

I can use Shutter app in GNU/Linux to take a screenshot of a specific area, window, whole screen, or even of a website. How do I take a screenshot on my mac book pro/mini desktop…

HowTo: Pronounce Mac OS X

I am a new Apple Mac book pro user. Is Mac OS X pronounced as “Mac OS E-X” or “Mac OS Ten”? How do you pronounce the Apple Mac os X? How do I find…

Linux / Unix: Sort ls Command Output By Last Modified Date and Time

I download lots of files in ~/Downloads/ folder in Ubuntu Linux and OS X desktop. How do I show last downloaded file first using the ls command? How do I sort the output of ls…

Mac OS X: Set / Change $PATH Variable

I need to add dev tools (such as JDK and friends) to my PATH. How do I change $PATH variable in OS X 10.8.x? Where does $PATH get set in OS X 10.8 Mountain Lion?…

SSH Into Google Cloud Compute Engine Instance Using Secure Shell Client

I need to set and test my web-app using Google cloud compute engine. How do I connect to an Instance Using ssh on Ubuntu Linux or Apple OS X based system?   By default, you…

OpenSSH Config File Examples

H ow do I create and setup an OpenSSH config file to create shortcuts for servers I frequently access under Linux or Unix desktop operating systems?   A global or local configuration file for SSH…

Change Password Using passwd Command Over SSH Based Session

I‘m a new Ubutnu Linux user. I backup files to our corporate Unix backup server using the rsync command. The server only allow to upload/download files. I am unable to login to the server. How…

OpenSSH Config File Examples

How do I create and setup an OpenSSH config file to create shortcuts for servers I frequently access under Linux or Unix desktop operating systems? A global or local configuration file for SSH client can…

Change Password Using passwd Command Over SSH Based Session

I‘m a new Ubutnu Linux user. I backup files to our corporate Unix backup server using the rsync command. The server only allow to upload/download files. I am unable to login to the server. How…