linux - ls command ignore specific directory [bash] -


tree:

a.txt (file) tests/b.txt (directory) c.txt (file) 

ls :

a.txt tests/b.txt c.txt 

ignore specific file:

ls -i c.txt :

a.txt tests/b.txt 

ignore specific directory:

ls -i tests : (does not work - tests directory should not appear)

a.txt tests/b.txt c.txt 

the "man page" ls command explains -i flag accepts pattern. can use wildcard in command:

ls -i tests* 

see: man ls or commands online man page


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -