You can use the ls command to list all dot files in your current directory:
Sample outputs:
ls .*
.bash_history .bash_profile .bashrc .lesshst .profile .viminfoAnother option is to use the find command:
.:
checkfs checkroot interfaces interfaces.new scripts securedata.keyfile
..:
lost+found root root.user.only
.aptitude:
cache config
.keychain:
nas01-csh nas01-fish nas01-sh
.ssh:
id_rsa id_rsa.pub known_hosts
.system_file_bakups:
.vim:
$ find . -name ".*"
Sample outputs:
.To list only matching dot files, enter:
./.bash_history
./.system_file_bakups
./.viminfo
./.bashrc
./.lesshst
./.ssh
./.profile
./.aptitude
./.bash_profile
./.vim
./.vim/.netrwhist
./.keychain
$ find . -type f -name ".*"
Sample outputs:
./.bash_historyTo list only matching dot directories, enter:
./.viminfo
./.bashrc
./.lesshst
./.profile
./.bash_profile
./.vim/.netrwhist
$ find . -type d -name ".*"
Sample outputs:
.
./.system_file_bakups
./.ssh
./.aptitude
./.vim
./.keychain
No comments:
Post a Comment