terça-feira, 25 de março de 2014

Unix Command - How can you get the subdirectories of an existing directory in *Unix? - find


You can use the find command in *Unix.

Go to the directory that you want to get the subdirectories and do this command:

 find . -type d 


Types:
   d - directory
   f - file
   l - symbolic link


----------------------

other way:

In the directory that you want, do this command:

 ls -ltr | grep ^d 

*this command does not get all existing subdirectories.

Nenhum comentário:

Postar um comentário