LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-12-2005, 10:17 PM   #1
zeviddalop
Member
 
Registered: Sep 2004
Location: bozeman, montana
Distribution: mandrake
Posts: 32

Rep: Reputation: 15
alias command


is there any specific directory to create and store alias commands or should i just use my root directory? thanks
 
Old 01-12-2005, 10:21 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Create and store aliases in a directory? Who have you been talking to??

I assume you mean an alias for commands. For instance, typing "ll" at the command prompt, and expecting it to execute "ls -l". Those aliases aren't stored as files; they're settings in your ~/.bashrc (normally). Just open ~/.bashrc in a text editor, and define whatever aliases you want. To continue the example I mentioned earlier, you would add a line like this to your ~/.bashrc:
Code:
alias ll='ls -l'
The next time you login, the aliases will be set automatically.
 
Old 01-12-2005, 10:31 PM   #3
zeviddalop
Member
 
Registered: Sep 2004
Location: bozeman, montana
Distribution: mandrake
Posts: 32

Original Poster
Rep: Reputation: 15
lord helmet, good work. i type the bash command but 'don't have permission'. it's my computer so i know i have administrator privileges but how do i get around this? thanks.
 
Old 01-12-2005, 10:59 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Ok, you lost me. What command are you trying to execute, and what's the error message?
 
  


Reply


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
Use for the alias command Metablade Linux - Newbie 4 10-12-2005 06:44 PM
alias command line arguements Henster Linux - Newbie 2 07-01-2005 04:40 AM
Adding Network Interface alias from command line WireLine Fedora 2 06-09-2005 12:08 AM
Creating mult command alias in BASH labob Linux - Newbie 1 11-18-2004 08:37 PM
alias or function in .bashrc, which sends command to background ngomong Linux - General 1 04-23-2002 10:50 PM


All times are GMT -5. The time now is 01:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration