≡ Menu

Suse

Linux / Unix vi / vim: Open and Switch Between Multiple Files

I am new to Linux sysadmin work. I am using vi / vim text editor to edit files located in /etc/ directory. I open files using

vi /etc/resolv.conf /etc/hosts

I can edit the /etc/resolv.conf file only. How do I switch between the two open files while using vim text editor under Linux / BSD / Apple OS X / Unix like operating systems?
[click to continue…]

TCSH / CSH Shell Set PATH Variable

I am a new Unix / Linux / Apple OS X user. What is my path in CSH / TCSH shell? How do I set or modify path in c shell (CSH) on Unix like operating systems?
[click to continue…]

HowTo: Change Password of Specific User Account In Linux

Hdo I change passwords for specific user account under Linux operating system using the command line?
[click to continue…]

Rsync: Preserve / Copy Hard Links ( Backup Rsnapshot Directory Tree )

I‘m using rsnapshot filesystem snapshot utility to make incremental snapshots of local and remote filesystems for 10 production servers running on RHEL 5.x system. The rsnapshot commands makes extensive use of hard links, so if the file doesn’t change, the next snapshot is simply a hard link to the exact same file. How do I use the rsync command to copy my the entire snapshot directory /raid6/rsnapshot/ (around 4TB) to a remote server for mirroring purpose?
[click to continue…]

Linux Command To Shutdown HP/IBM/Sun/Dell Server System


How do I shutdown a Linux powered server using command line option?
[click to continue…]

Linux Command: Put Laptop / Netbook In Hibernate / Suspend Mode

How do I suspend or hibernate from bash shell command line under Linux operating systems? How do I suspend or hibernate my Ubuntu Dell laptop using command line, without using additional software?
[click to continue…]

Use export Command in Linux / Unix

How do I use export command under a Linux or Unix-like operating systems to set variables on a bash shell?
[click to continue…]

HowTo: Linux Mount devpts File System On /dev/pts

How do I mount the devpts file system under Linux operating systems using bash command prompt? How can I mount the devpts on /dev/pts using /etc/fstab file under Linux operating systems?
[click to continue…]

Linux: Block Port With IPtables

How do I block port number with iptables under Linux operating systems?
[click to continue…]

Linux: Bash Get Time

How do I get the system time in BASH? How can I get the Linux system using bash shell?
[click to continue…]