Category Archives: UNIX

How to Add One User to Multiple Groups

Assalamualaikum, The utility is usermod and is used like: usermod -a -G group1,group2 username Where username is the user you want to modify and group1 and group2 are the new groups you want that user to join. Running the command … Continue reading

Posted in Linux, UNIX | Tagged , , , , , , ,

How to Identify the File System Type in Linux/Solaris

Salam.. There are few methods how to determine your linux file system. Below are commands that I usually use. Linux $ df -Th $ df -Th | grep “^/dev” $ fsck -N /dev/sd* $ lsblk -f $ mount | grep … Continue reading

Posted in freeBSD, Linux, Solaris, UNIX | Tagged ,

Happy New Year 2018!

.. Last login: Tue Jan 2 12:11:49 2018 from 104.223.123.98 [hanief@master ~]$ mv 2017 /archive [hanief@master ~]$ sudo mkdir 2018 [hanief@master ~]$ cd 2018 [hanief@master ~]$ vi goals.sh [hanief@master ~]$ chmod +x goals.sh [hanief@master ~]$ nohup ./goals.sh & [hanief@master ~]$ … Continue reading

Posted in Linux, UNIX | Tagged ,

CentOS-7 “Minimal Desktop” installation (GNOME)

Assalamualaikum.. For some reasons you need to install GUI on your CentOS server. In my case, I having a bad time to install Oracle Database 12c in my CentOS using CLI. I don’t have plenty of times struggling with CLI … Continue reading

Posted in Install, Linux, UNIX | Tagged , , , , , , , ,

How to Setup network on RHEL/CentOS 7 (Minimal)

Assalamualaikum… Issue: Not able to connect to network/internet. Caused by: Ethernet interfaces are not enabled by default. Step 1: First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine: Step 2: Type “nmtui” … Continue reading

Posted in Linux, UNIX | Tagged , ,

Create a Bash Alias in OSX/MacOS

Assalamualaikum, When I bought my Mac, the .bash_login file wasn’t there. I need to create it for myself so that I could put prompt info, alias, functions, etc. in it. Here are the steps if you would like to create … Continue reading

Posted in Mac, MacOS, OSX, UNIX | Tagged , , ,

How to Browsing the Web Using SSH Tunnel

Assalamualaikum, Sometimes you need to configure something on your client office (router/firewall), but the only way to do that was to be on the their internal network and browse to it using a browser. Trying text based browsers didn’t work, … Continue reading

Posted in Browser, Linux, UNIX | Tagged , , , , ,