Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT

I ‘m a new Linux / Unix system user. How can I set encrypted tunnel between my desktop/laptop computer and server in a remote data center to bypass the limits in a network? How do…

Unix / Linux: Initialize Dot Files Without Restarting The Current Shell Session

I ‘m a new Linux, OS X or Unix-like system users. I’m using bash shell. I made changes to my $HOME/.profile ($HOME/.bash_profile) file. How can I restart my session without doing logout and login again?…

How to Run and Execute Command When I Log Out Of Linux Session?

I ‘m using CentOS 7 server. I need to run a command when I logout using ssh or bash shell. So in Linux and Unix-like systems, how can I run a command to execute when…

FreeBSD Force DHCP Client (dhclient) to Renew IP Address To Get A New Lease

I have a Linux DD-WRT router DHCP server running on my network. How can I force my FreeBSD based dhcp client to get a new lease from this Linux based router? What is the command…

Bash: Reissue And Repeat A Long Command Without Retyping It on a Linux, OS X & Unix

I ‘m a new Ubuntu Linux user. In Linux, Apple OS X or Unix-like systems, how do I reissue or repeat a long command without retying it?   You need to use the history command…

Ubuntu Linux: Edit and Open Files That Require Administrator Privileges

T here are certain files in Ubuntu Linux (or Unix-like systems) that only root user access or edit. How can I edit and/or open files that requires admin (root) access on a Ubuntu Linux?  …

How to run sudo command without a password on a Linux or Unix

I ‘m a new Unix system user. How do I use sudo command without a password on a Linux or Unix-like systems? I log in as tom@my-cloud-server-ip and disabled root login for ssh. After login,…

Linux/Unix: How To Extract and Decompress a .bz2/.tbz2 File

I ‘ve a file called foo.bz. How do I extract or decompress a .bz2 file on a Linux or Unix-like systems using command line options?   You can decompress .bz2, .bz, .tbz2, and .tbz file…

Bash: Find out the exit codes of all piped commands

H ow do I get exit status of process that’s piped to another (for e.g. ‘netstat -tulpn | grep nginx‘) on a Linux or Unix-like system using a bash shell?   A shell pipe is…

How To Find the WiFi Password on Mac OS X

I ‘ve MBP 13″ laptop. How can I find out the Wifi password on Mac OS X using command line and GUI options?   OS X stores your WiFI details including password in Keychain password…