Show Hidden Files
For linux to show hidden files when you type ls command
Edit ~/.bashrc
1 |
vi /root/.bashrc |
Add line
1 |
alias ls='ls -la --color' |
Save and exit. Now you need to re login to SSH to see the hidden files when you type “ls”
After editing the file will look like
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@194 ~]# cat /root/.bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ls='ls -la --color' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi [root@194 ~]# |