LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-08-2004, 09:49 AM   #1
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Rep: Reputation: 15
built-in scripts in Slackware


I know that there are built-in scripts in Slackware such as /usr/bin/adduser and /usr/bin/passwd. Are there other scripts, a complete listing, in existance? Or a way I can look and find them all?


My second question is where is a good place to add aliases in Slackware? Should I create new files?

Thankyou,

Gary
 
Old 07-08-2004, 01:23 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
To see a list of commands that are in your path hit the tab key twice.

To create an alias you can use alias:
alias pw="passwd"
 
Old 07-08-2004, 08:03 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Just to add to that...

For shell scripts specifically, this'll find most of them - add paths where appropriate, I guess:

file /bin/* /sbin/* /usr/bin/* /usr/sbin/* | grep shell | less

To preserve aliases, store them in a shell config file. If you're going to be executing them 'through' things, so to speak, you might want to write little scriptlets that do the job, as not everything will pay attention to your aliases, being internal to the shell, sort of.
 
Old 07-12-2004, 08:09 AM   #4
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by david_ross
To see a list of commands that are in your path hit the tab key twice.

To create an alias you can use alias:
alias pw="passwd"
David,

Tab twice is great but that gives 3291 commands! Is there a short list of popular commands, such as netconfig, comes to mind ? Possibly 20 to 30 popular commands. I am not referring to normal commands like ls, pwd, rm, etc.

Also adding an alias does not keep it after I end a session. Where in Slackware can I store aliases possibly along with the system aliases?

Thanks,

Gary
 
Old 07-12-2004, 10:19 AM   #5
Jose Muņiz
Member
 
Registered: Jul 2003
Location: Mexico City
Distribution: Slackware 9.1, SuSE 9.1
Posts: 248

Rep: Reputation: 30
I think you're looking for the contents of /sbin and /usr/sbin. As for a list of popular ones, I don't know ... I'll have a look in my books.

But you can always do a ls /sbin and find out
 
Old 07-12-2004, 10:27 PM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
you can place the new created aliases either in

/etc/profile // if you want to share it with other users . You will need root perms to edit this file
.profile or .bash_profile on your home directory.

These files are read and loaded when you log in.

Last edited by ppuru; 07-12-2004 at 10:29 PM.
 
Old 07-13-2004, 07:48 AM   #7
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Jose Muņiz
I think you're looking for the contents of /sbin and /usr/sbin. As for a list of popular ones, I don't know ... I'll have a look in my books.

But you can always do a ls /sbin and find out

Thanks, I'll try that.

Gary
 
Old 07-13-2004, 07:49 AM   #8
Gary_Menegon
Member
 
Registered: Jun 2004
Location: Joliet, Illinois
Distribution: slackware
Posts: 38

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ppuru
you can place the new created aliases either in

/etc/profile // if you want to share it with other users . You will need root perms to edit this file
.profile or .bash_profile on your home directory.

These files are read and loaded when you log in.
Thanks, I'll try that.

Gary
 
  


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
Slackware 10- Please confirm my steps used to remove a module from a pre-built kernel jtp51 Slackware 7 11-03-2004 05:02 PM
built-to-order PC or ready-built PC from well-known companies? kpachopoulos General 6 11-03-2004 03:14 PM
How to Built a Distributation based off slackware? predator.hawk Slackware 8 10-12-2004 02:41 PM
is FDISK built-in in Slackware? unixfreak Slackware 7 08-09-2004 10:33 PM
sendmail package for slackware built with SASL?? Demon333 Slackware 5 03-20-2004 06:49 PM


All times are GMT -5. The time now is 02:31 AM.

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