Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
/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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.