LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 09: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, 09:21 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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, 09: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, 09:59 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

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

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

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration