≡ Menu

unix operating system

Unix / Linux Shell: Parse Text CVS File Separator By Field

I work for a small ISP (Internet Service Provider) and we are using Linux and Unix-like operating system with bash shell. I want to write a shell script to parse the csv file line by line. Then line must be parse again field by field. The sample input file is as follows:


I need to extract each of these example.com,username,groupname,homedir,md5password,permission,secondarygroup fields and passed to the different system utilities. How do I write a shell script to automate this task and use the bash shell to parse a text file?
[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…]

HowTo: Move A Folder In Linux Using mv Command

How do I move a folder in BSD/Linux/Apple OX or Unix operating system using bash command line option?
[click to continue…]

Linux / UNIX: TZ Environment Variable

What is the correct format for a TZ (time zone) environment variable for use with the Linux or UNIX operating system?
[click to continue…]

HowTo: Check Swap Usage In IBM Aix Unix

How do I check swap space usage (paging) under IBM AIX Unix operating system using command line options?
[click to continue…]

Linux: rsync Copy Directories Structures Tree Only

I am looking for to only sync directories structures only. How do I copy directory structure tree without copying any files under Linux or UNIX operating system to remove server or local directory?
[click to continue…]

Linux / UNIX: Kill User Session

How do I kill all users session under Linux or UNIX operating system using command prompt?
[click to continue…]

Find: UNIX Operating System Release and Version Number

How do I find Unix version and release number using command line options? What version, release, and maintenance level of Unix is running on my system?
[click to continue…]

Solaris Buffer Overflow Protection

One of the most common ways for hackers to break into a Solaris system is to exploit buffer overflows. How do I turn on buffer overflow protection under Solaris UNIX operating system just like CentOS/Redhat Linux system?
[click to continue…]

HP-UX: Boot Into Single User Mode

Question: I know how to boot into single user mode under Linux and FreeBSD. But, how do I boot into single user mode under HP-UX (HP9000) UNIX operating system?
[click to continue…]