| Start | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Changing default shell Most modern distributions will come with BASH (Bourne Again SHell) pre-installed and configured as a default shell. The command (actually an executable binary, an ELF) that is responsible for changing shells in Linux is We can first check which shells are already installed and configured on our machine by using the In some Linux distributions, Now we can choose our new default shell, e.g. Now all that is left to do is preform a logoff-logon cycle, and enjoy our new default shell. If you wish to change the default shell for a different user, and you have administrative privileges on the machine, you'll be able to accomplish this by using In order to check what the current default shell is, we can view the |
||||||||||||||||||||||||||||||||||||||||||||
Basic Shell Utilities Customizing the Shell promptDefault command prompt can be changed to look different and short. In case the current directory is long default command prompt becomes too large. Using
Some basic shell commands
|
||||||||||||||||||||||||||||||||||||||||||||
| Create Your Own Command Alias If you are tired of using long commands in bash you can create your own command alias. The best way to do this is to modify (or create if it does not exist) a file called .bash_aliases in your home folder. The general syntax is: where maps the new command alias |
||||||||||||||||||||||||||||||||||||||||||||
| Locate a file on your system Using bash you can easily locate a file with the Sometimes files have strange names for example you might have a file like Which would bring up all results which contain both of these pieces. Note that not all systems have the Should you not have a working is roughly equivalent to |
Read Article
https://develop.horje.com/learn/1434/reference