Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
In your user home directory, there is probably a hidden file called .bashrc (or something similar). If not, you can copy /etc/bashrc into your home directory: cp /etc/bashrc ~/.bashrc.
Open the file in any editor; there is probably a section with some aliases already. To add your own, just use the same format at those you see there.
To get rid of an alias, just comment it out, or delete it.
After adding/removing an alias, run the command 'source ~/.bashrc' to activate the new aliases. Or do it the windows way and reboot. Your choice.
What do you mean 'search files'? Search for files, or search within files?
To search for files, you can use find (see the man pages for find), or su to root and run updatedb to make a database of all files on the system and use locate to find a file (you can use partial or complete names - all matches to the string you use will be displayed).
To search within a file, use find piped through grep, or awk.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.