Shell Command Aliases
A command alias allows you to create an alias name for common commands (along with their
parameters) to help keep your typing to a minimum.
Most likely your Linux distribution has already set some common command aliases for you. To
see a list of the active aliases, use the alias command with the -p parameter:
Example:
$ alias -p
alias l.=’ls -d .* –color=tty’
alias ll=’ls -l –color=tty’
alias ls=’ls –color=tty’
alias vi=’vim’
alias which=’alias | /usr/bin/which –tty-only –read-
alias–show-dot –show-tilde’
Tags: aliases, command, shell
The /etc/profile file
The /etc/profile file is the main default startup file for the bash shell. Whenever you log in to the Linux system, bash executes the commands in the /etc/profile startup file. Different Linux distributions place different commands in this file.
The /etc/profile file is the main default startup file for the bash shell on the system. Every user on the system executes this startup file when they log in.
Tags: /etc/profile, file
Migrating to the Latest Version of Parallels Pro Control Panel
The following section provides instructions on migrating to the latest version of Parallels Pro Control Panel.
To migrate to the latest version of Parallels Pro Control Panel:
Log in to the Server Administrator control panel on the Parallels Pro Control Panel server from which you want to migrate data.
Export data from the server:
In the shortcuts section of the Home page, click Export/Import (Tools section).
Perform a Complete backup.
Log in to the Server Administrator control panel on the Parallels Pro Control Panel server.
Import the data to the server to which you want to migrate.
In the shortcuts section of the Home page, click Export/Import (Tools section).
Click Import.
Reference: http://download.pro.parallels.com/
Tags: Control, latest, Migrating, Panel, Parallels, Pro, Version
When you log in to the Linux system, the bash shell starts as a login shell. The login shell looks for four different startup files to process commands from. The order in which the bash shell processes the files are:
/etc/profile
$HOME/.bash profile
$HOME/.bash login
$HOME/.profile
The /etc/profile file is the main default startup file for the bash shell on the system. Every user on the system executes this startup file when they log in. The other three startup files are specific for each user and can be customized for each user’s requirements.
Tags: linux, login, shell
The complete parameter list for the ls command.
There are lots of parameters for the ls command that can come in handy as you do file management. If you use the man command for ls, you’ll see several pages of available parameters for you to use to modify the output of the ls command.
root@dell:~# ls -sail /etc |less
418076 8 -rw-r–r– 1 root root 4623 May 5 2009 Muttrc
493130 4 drwxr-xr-x 2 root root 4096 Jul 6 2009 Muttrc.d
416980 4 drwxr-xr-x 3 root root 4096 Sep 27 2008 NetworkManager
500697 4 drwxr-xr-x 2 root root 4096 Apr 7 2009 ODBCDataSources
416981 4 drwxr-xr-x 13 root root 4096 Dec 8 19:19 X11
416982 4 drwxr-xr-x 4 root root 4096 Sep 1 2007 Xprint
417381 4 -rw-r–r– 1 root root 2563 Jan 3 2008 a2ps-site.cfg
417382 16 -rw-r–r– 1 root root 15064 Jan 3 2008 a2ps.cfg
416983 4 drwxr-xr-x 9 root root 4096 Sep 27 2008 acpi
A common combination to use is the -a parameter to list all files, the -i parameter to list the inode for each file, the -l parameter to produce a long listing, and the -s parameter to list the block size of the files. The inode of a file or directory is a unique identification number the kernel assigns to each object in the filesystem. Combining all of these parameters creates the easy-to-remember -sail parameter.
Tags: command, complete, list, ls, parameter