≡ Menu

AIX

How to find out zone information for given country on Linux or Unix

How do I find out the current time for each zone name specified on the command line on a Linux, FreeBSD, OS X or Unix-like system? How do I report time zone information for Singapore or Japan on the command line?
[click to continue…]

HowTo: Use pwd Command In Linux / UNIX

How do I use the pwd command in Linux or Unix like operating systems? How can I use pwd command in UNIX or Linux shell scripts for automation purpose?
[click to continue…]

Linux: Mount FreeBSD UFS 2 File System Command

I need to copy files from my second hard disk. This hard disk formatted with UFS 2 file system. How do I mount UFS 2 file system created by FreeBSD on my Debian Linux 6 based system?
[click to continue…]

Unix Copy Command Examples [ cp command ]

How do I copy files under Unix operating system using ksh or csh or bash shell prompt?
[click to continue…]

Unix HowTo: Start / Stop / Restart Network Service Command

How do I start, stop, or restart networking service under HP-UX, OpenBSD, AIX and other Unix like operating systems?
[click to continue…]

HowTo: Find Out DNS Server IP Address Used By My Router?

My router configured by ISP tech and it is set to get DNS server address automatically from upstream. Is there is a way to find out the IP address of the dns server used by my router which is located at 192.168.1.1? Is there Linux, Unix, Apple OS X, or MS-Windows command that I can use get the same information?
[click to continue…]

Bash: Assign Output of Shell Command To Variable

How do I assign the output of a shell command to a shell variable under Unix like operating system? For example, I want to store the date command output to a variable called $now. How do you do that?
[click to continue…]

Where Is The Xorg.conf File Located under Unix / Linux / BSD?

I want to find and edit my xorg.conf file for tweaking and configure it for new settings. The problem is that I’m unable to find the file. According to my research, xorg.conf should in /etc/X11 or /usr/X11R6/lib/X11/ directory. I found directories but not the file in directories. How do I find the xorg.conf under Unix or Linux like operating systems?
[click to continue…]

Howto: Send The Content Of a Text File Using mail Command In Unix / Linux

I‘d like to send an email with the content of a text file using mail command in Unix / Linux operating system. How do I do it?
[click to continue…]

UNIX: Recursive Delete Directory / Files

How do I delete (remove) a directory called $HOME/foo and its content including all files and sub-directories under Unix like operating systems? What is the best way to completely delete /tmp/foo/ with all it’s content?
[click to continue…]