LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03: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, 03:05 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

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

alias ll='ls -l'



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

Rep: Reputation: 79
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 03:19 PM.
 
Old 05-06-2003, 03: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



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 12:40 AM
Alias ChimpFace9000 Linux - General 9 01-14-2004 04:01 AM
ip alias mindcry Linux - Networking 0 10-16-2003 07:41 PM
using alias intruptz Linux - General 5 09-17-2003 04:32 AM
alias nobu Slackware 5 01-11-2003 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:50 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