Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-28-2005, 04:26 AM   #1
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
how to get alias list

if some users alias some command ...

how to get the alias list.

what variables are linked to what commands.

can u ?
Old 04-28-2005, 04:37 AM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
My /home/fancy/.bashrc file:
# Duron 950 uilleann .bashrc for user fancy
# User specific aliases and functions
# Start X server
alias x='startx'
# Change bash prompt. See the article
export PS1='\d \@ \[\e[32;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[32;1m\] $ \[\e[0m\]'
# For the root account use this
# export PS1='\d \@ \[\e[31;1m\]\u\[\e[34;1m\]@\[\e[36;1m\]\H \[\e[34;1m\]\w\[\e[31;1m\] # \[\e[0m\]'
# Keep 1000 lines in .bash_history (default is 500)
export HISTSIZE=1000
export HISTFILESIZE=1000
#Stop bash from caching duplicate lines.
# Disk free
alias df='df -h'
# Set paths
alias path='echo -e ${PATH//:/\\n}'
# Allow local users to use my X session
# xhost +local:
# I can't remember the new gnome command!
alias gtop='/usr/bin/gnome-system-monitor'
# Alter the ls command
alias ls='ls -ac'
alias lls='ls -lac'
# Become system administrator
alias god='su -'
# xterm
# alias xterm='xterm -bg black -fg white'
# Launch links with my linux links page
alias links='links /home/fancy/bookmarks.html'
# For nano editor because I forget which one I use in which distro
alias pico='nano -w'
alias nano='nano -w'
# Script needs to be on the bottom of the file or RH updates will fsck it up
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
# See all command aliases for the current user


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Recommendation for Debian Etch sources.list ( /etc/apt/sources.list ) forgox Debian 6 05-05-2007 01:57 PM
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 12:40 AM
get list of latest list of packages bobwall Linux - Distributions 1 11-30-2004 03:48 PM
wireless channel list different from router's list heluani Linux - Laptop and Netbook 1 08-29-2004 10:04 PM
Inserting element to a list of list in C suwandy_chandra Programming 2 03-09-2004 03:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration