Message-ID: <3A4226C1.50EF2F7D@wanadoo.nl> Date: Thu, 21 Dec 2000 16:50:25 +0100 From: jayhen <jayhen@wanadoo.nl> Subject: Alias file I know that this is a lame question but I'm looking for the alias file that contails the information below so that I can add some aliases of my own. I have tried to make an alias and .alias file but neither works. What am I over looking? Here is some more information that might be helpful. 1) As a normal user I can use these aliases but I cannot find the alias file to add my own aliases. 2) As root I cannot use these aliases and I can find the files aliases and aliases.db but aliases contains other information. 3) If I enter the connand newaliases, none of the aliases work as root or a user. alias +='pushd .' alias -='popd' alias ..='cd ..' alias ...='cd ../..' alias A:='echo -e '\''Error: There is no such thing as a drive A: in Un*x!\n Use mtools, mount or autofs to access your floppy.'\''' alias C:='echo -e '\''Error: There is no such thing as a drive C: in Un*x!\n Your harddisk should already be mounted (via /etc/fstab or autofs).'\''' alias beep='echo -en "\x07"' alias cd..='echo '\''Error: Try: cd ..'\''' alias chkdsk='echo -e '\''Error: Your filesystems are checked on bootup.\n If you want to do it manually, use fsck.\n Use df and mount for an overview of your disks.'\''' alias copy='echo '\''Error: Try the command: cp -piv'\''' alias del='echo '\''Error: Try the command: rm -iv'\''' alias dir='ls -l' alias dos2unix='recode ibmpc..lat1' alias format='echo -e '\''Error: The D*S concept of formatting a disk is screwed.\n Maybe you want to create a filesystem? Use mkfs then.'\''' alias l='ls -alF' alias la='ls -la' alias ll='ls -l' alias ls='ls $LS_OPTIONS' alias ls-l='ls -l' alias md='mkdir -p' alias mem='echo '\''Error: Try the command: free'\''' alias move='echo '\''Error: Try the command: mv -iv'\''' alias o='less' alias rd='rmdir' alias rehash='hash -r' alias unix2dos='recode lat1..ibmpc' alias unmount='echo "Error: Try the command: umount"' alias ver='echo '\''Error: Try the command: uname -a'\''' alias which='type -p' Regards, Jay
Message-ID: <3A422A7D.4B4DDD2E@compro.net> Date: Thu, 21 Dec 2000 11:06:21 -0500 From: Mark Hounschell <markh@compro.net> Subject: Re: [SLE] Alias file jayhen wrote:
I know that this is a lame question but I'm looking for the alias file that contails the information below so that I can add some aliases of my own. I have tried to make an alias and .alias file but neither works. What am I over looking? Here is some more information that might be helpful. 1) As a normal user I can use these aliases but I cannot find the alias file to add my own aliases. 2) As root I cannot use these aliases and I can find the files aliases and aliases.db but aliases contains other information. 3) If I enter the connand newaliases, none of the aliases work as root or a user.
alias +='pushd .' alias -='popd' alias ..='cd ..' alias ...='cd ../..' alias A:='echo -e '\''Error: There is no such thing as a drive A: in Un*x!\n Use mtools, mount or autofs to access your floppy.'\''' alias C:='echo -e '\''Error: There is no such thing as a drive C: in Un*x!\n Your harddisk should already be mounted (via /etc/fstab or autofs).'\''' alias beep='echo -en "\x07"' alias cd..='echo '\''Error: Try: cd ..'\''' alias chkdsk='echo -e '\''Error: Your filesystems are checked on bootup.\n If you want to do it manually, use fsck.\n Use df and mount for an overview of your disks.'\''' alias copy='echo '\''Error: Try the command: cp -piv'\''' alias del='echo '\''Error: Try the command: rm -iv'\''' alias dir='ls -l' alias dos2unix='recode ibmpc..lat1' alias format='echo -e '\''Error: The D*S concept of formatting a disk is screwed.\n Maybe you want to create a filesystem? Use mkfs then.'\''' alias l='ls -alF' alias la='ls -la' alias ll='ls -l' alias ls='ls $LS_OPTIONS' alias ls-l='ls -l' alias md='mkdir -p' alias mem='echo '\''Error: Try the command: free'\''' alias move='echo '\''Error: Try the command: mv -iv'\''' alias o='less' alias rd='rmdir' alias rehash='hash -r' alias unix2dos='recode lat1..ibmpc' alias unmount='echo "Error: Try the command: umount"' alias ver='echo '\''Error: Try the command: uname -a'\''' alias which='type -p'
Regards,
The above aliases are set in /etc/profile. If you want to add more use /etc/profile.local for global aliases or your .bashrc or .profile in your home directory for non-global. -- Mark Hounschell markh@compro.net
From: Álvaro A. Novo <novo@uiuc.edu> Date: Thu, 21 Dec 2000 10:04:13 -0600 Message-Id: <0012211004130F.00435@friedman> Subject: Re: [SLE] Alias file On Thursday 21 December 2000 10:06, Mark Hounschell wrote:
The above aliases are set in /etc/profile. If you want to add more use /etc/profile.local for global aliases or your .bashrc or .profile in your home directory for non-global.
If your .bashrc reads: test -e ~/.alias && . ~/.alias then you can place all your alias in ~/.alias. Here's sneak of mine: #!/bin/bash # Commands shortcuts alias gv='gv -geometry 800x925-0+0' alias c:='mount /dev/hda1' alias uc:='umount /dev/hda1' alias tips='vi ~/projects/learn.linux/tips' # Directories shortcuts alias cdp='cd ~/projects' alias cdw='cd ~/projects/webpage' alias sc='cd ~/projects/scripts' alias cd2='cd /home2' alias cdd='cd /home/anovo/projects/photos/download' alias raquel='cd /home/anovo/projects/photos/raquel/2000/december' ... Alvaro Novo SuSE 6.4 -=- Kernel 2.2.17 -=- KDE 2.0.1 10:03am up 1 day, 15:11, 8 users, load average: 0.10, 0.08, 0.03
participants (3)
-
jayhen@wanadoo.nl
-
markh@compro.net
-
novo@uiuc.edu