≡ Menu


Linux / Unix: Rsync Copy Files & Directories Names With WhiteSpaces and Blanks

I need to transfer a file called ‘some cool movie.avi’ that contains whitespace under rsync. How do I escape a filename or directory name with spaces in them while using rsync command under Linux / *BSD / Unix like operating systems? How do I use rsync when files / dirs contain spaces?
[click to continue…]

Ubuntu Linux: Disable Apparmor For Specific Profile / Service Such As Mysqld Server

AppArmor last updated October 18, 2015

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: Delete / Remove User Account

How do I remove a user’s access from my server? How do I delete a user account under Linux operating systems include home directory and running cron jobs?
[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…]