LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-28-2005, 04:26 AM   #1
bruse
Member
 
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
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
My /home/fancy/.bashrc file:
Code:
# Duron 950 uilleann .bashrc for user fancy
# User specific aliases and functions
                                                                                                                     
# Start X server
alias x='startx'
                                                                                                                     
# Change bash prompt. See the article
# http://www-106.ibm.com/developerwork.../l-tip-prompt/
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.
HISTCONTROL=ignoredups
                                                                                                                     
# 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
fi
# See all command aliases for the current user
alias
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:14 AM.

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