For linux to show hidden files when you type ls command
Edit ~/.bashrc
vi /root/.bashrc
Add line
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
[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 ~]#
Leave a Reply