An alias is nothing but shortcut to commands. The alias command allows user to launch any command or group of commands (including options and filenames) by entering a single word. Use alias command to display list of all defined aliases. You can add user defined aliases to ~/.bashrc file. You can cut down typing time with these aliases, work smartly, and increase productivity at the command prompt.
It happens all the time. Sooner or later, every organization may run out of qualified admin staff because of various issues. So how do you deal with fresh out of school admins or other helping people in your organization?
This is easy to use Linux command line index. Linux commands divided into categories such as:
=> System information
=> Files and Directory
=> File search
=> Mounting a Filesystem
=> Disk Space
=> Users and Groups and others
Vmware server comes with the nifty vmware-cmd utility. It allows an administrator to perform various operations on a virtual machine from Linux command line / shell prompt such as:
=> Stop / Start VM
=> Get VM status
=> Setup variables
=> Powerdown VM and much more
Task: Lists the virtual machines on the local server
You can list all servers and config file, enter:
# vmware-cmd -l
/nas/vms/Ubuntu/Ubuntu.vmx /nas/vms/FreeBSD/FreeBSD.vmx /nas/vms/OpenBSD/OpenBSD.vmx /nas/vms/Debian4/Debian4.vmx /nas/vms/CentOS5/CentOS5.vmx
Turn on VM / Power up VPS
Just pas start option to vmware-cmd,
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx start
To stop VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx stop
To reset VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx reset
To suspend VM/VPS, enter:
# vmware-cmd /nas/vms/FreeBSD/FreeBSD.vmx suspend
Find out if OpenBSD VM is on or off:
# vmware-cmd /disk2.vmware/vms/OpenBSD/OpenBSD.vmx getstate
getstate() = off
vmware-cmd offers other options, please consult VMWARE documentation for more information.
A quick way to get locale-specific information is use locale command. The locale program writes information about the current locale environment such as:
=> Character classification and case conversion.
=> Date and time formats.
=> Numeric formats
=> Currency symbols
=> Measurement units and much more
When invoked without arguments, locale summarizes the current locale environment for each locale category defined by the LC_* environment variables.
LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
You can print the coded character sets known using following command:
$ iconv --list
Explains how to make a backup (track by track) using dd command under UNIX / Linux operating system.