Search Results

Search: Posts Made By: servus
3,605
Posted By Corona688
Or you can just do ls -d .* ?* which will work in...
Or you can just do ls -d .* ?* which will work in other shells than bash.
3,605
Posted By Lem
True, but in bash you could enable the dotglob...
True, but in bash you could enable the dotglob shell option, and have even a starting "." matched by "*":

$ shopt -s dotglob
$ ls -ld */
drwxrwxr-x 2 lem lem 40 2012-08-30 16:36 a1/...
3,605
Posted By jim mcnamara
I'm not sure what you are asking, but ls -lad...
I'm not sure what you are asking, but ls -lad will find other kinds of files than directories.
One way to get only directories:

ls -al | grep '^d'
3,605
Posted By elixir_sinari
That is because the shell wildcard * will not...
That is because the shell wildcard * will not match the starting .. If your shell supports brace expansion, you could try:
ls -ld {.,?}*/
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy