Title, how to display all directories in a particular directory using the find command
I'm looking into it.
This time, I would like to display all the directories below the home directory.
I tried using the command below, but I don't think the hidden directory (./ or .../) is displayed.
find$HOME-type d
[syuta@voyager~] $find$HOME-typed /home/student/syuta /home/student/syuta/cis18a /home/student/syuta/cis18a/jan17 /home/student/syuta/cis18a/feb17 /home/student/syuta/cis18a/my /home/student/syuta/cis18a/example /home/student/syuta/cis18a/project /home/student/syuta/.mozilla /home/student/syuta/.mozilla/plugins /home/student/syuta/.mozilla/extensions /home/student/syuta/public_html /home/student/syuta/.kde /home/student/syuta/.kde/Autostart
[syuta@voyager~]$ ls-aF ./ .aaa.swp.bash_logout.bashrc.kde/.mozilla/13cc harry jan30 projectron ../ .bash_history.bash_profile.emacs.lesshst.viminfo2aaacis18a/jan29lesson public_html/snape
If anyone knows the options or actions to display even hidden directories,
I would appreciate it if you could visit me.
.
and ..
are special names for "current directory" and "one directory up" in relative paths, respectively.
I think this is the correct behavior because the example that was done shows hidden directories such as .kde
and .mozilla
.
The directory .
or ..
does not exist (it is only for convenient convenience when it comes to file manipulation).
On /home/mike/test
, .
is /home/mike/test
and ..
is /home/mike
On /home/mike
, .
is /home/mike
and ..
is /home
As you can see when you actually use it, it is more convenient to not include .
or ..
.
If you're an Euler, ls-a
asks why .
or ..
, or rather, throw it.
© 2024 OneMinuteCode. All rights reserved.