LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-06-2003, 04:00 PM   #1
booyah
LQ Newbie
 
Registered: May 2003
Location: santa rosa, ca
Distribution: slackware 9
Posts: 19

Rep: Reputation: 0
alias


when i use the alias command to set "ls -l" to "ll" it only works for that session. where can i put it so it is permanent?
 
Old 05-06-2003, 04:05 PM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Make the alias in your .bashrc file.

alias ll='ls -l'



Cool
 
Old 05-06-2003, 04:05 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Just put it in a script:
1) create a file "/bin/ll"
2) Edit it and add:
Code:
#!/bin/bash
ls -l
3) chmod 755 /bin/ll

Last edited by david_ross; 05-06-2003 at 04:19 PM.
 
Old 05-06-2003, 04:17 PM   #4
booyah
LQ Newbie
 
Registered: May 2003
Location: santa rosa, ca
Distribution: slackware 9
Posts: 19

Original Poster
Rep: Reputation: 0
thanks
 
  


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
Alias question (2 commands for one alias) gflores Linux - Newbie 3 01-21-2006 01:40 AM
Alias ChimpFace9000 Linux - General 9 01-14-2004 05:01 AM
ip alias mindcry Linux - Networking 0 10-16-2003 08:41 PM
using alias intruptz Linux - General 5 09-17-2003 05:32 AM
alias nobu Slackware 5 01-11-2003 02:09 PM


All times are GMT -5. The time now is 07:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration