wiki:using_aliases_in_centos
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:using_aliases_in_centos [2016/07/25 11:36] – walkeradmin | wiki:using_aliases_in_centos [2023/03/09 22:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
\\ | \\ | ||
\\ | \\ | ||
- | You need to edit the .bash file for the logged in user who will use this alias. I am logged in as root, so I will edit that bash file.\ | + | I want an alias called **showip** that acutally does the same as typing ip addr |grep ' |
\\ | \\ | ||
- | 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 / | vi / | ||
\\ | \\ | ||
- | 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.1469442961.txt.gz · Last modified: 2023/03/09 22:35 (external edit)