User Tools

Site Tools


wiki:using_aliases_in_centos

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
wiki:using_aliases_in_centos [2016/07/25 11:36] walkeradminwiki:using_aliases_in_centos [2016/07/25 12:16] walkeradmin
Line 9: Line 9:
 \\  \\ 
 \\  \\ 
-You need to edit the .bash file for the logged in user who will use this aliasI am logged in as rootso I will edit that bash file.\ +I want an alias called **showip** that acutally does the same as typing ip addr |grep '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
 \\  \\ 
-     Navigate to /root cd /root+\\  
 +You need to edit the .bash file for the logged in user who will use this alias. I am logged in as pi, so I will edit that bash file.\  
 +\\  
 +Navigate to root
 +\\  
 +     cd /root 
 +\\  
 +Show the list of files:
 \\  \\ 
      ls -al to show file list, you will see a list of files, including one called .bashrc\\       ls -al to show file list, you will see a list of files, including one called .bashrc\\ 
Line 19: Line 26:
       vi /root/.bashrc       vi /root/.bashrc
 \\  \\ 
-My default .bashrc file looks like this:\\ +My default .bashrc file looks like this:
 \\  \\ 
         # .bashrc         # .bashrc
Line 57: Line 64:
 \\  \\ 
 \\  \\ 
- 
-         
-         
- 
- 
-        THIS SECTION IS UNFINISHED!!!!!!!! 
wiki/using_aliases_in_centos.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1