Tag Info

New answers tagged

4

Since you're already using GNU specific syntax (-b): du -abd1 maybehere*/ That way, it's du that lists the files in the maybehere* directories (and it doesn't exclude dot files). -d1 limits the reporting of disk usage to one level down (including non-directories with -a). Otherwise, for globs to include hidden files (except . and ..), each shell has its ...


3

Take advantage of brace expansion: du -b maybehere*/{.??,}* I used ?? to do not match .., i.e. parent directory. Alternatively du -b maybehere*/{.[^.],}* Brace expansion is a mechanism by which you can include more files/strings/whatever to the commandline by writing fewer characters. The syntax is {word1,word2,...}, i.e. it is a list of comma ...


0

If you want to just list hidden directories or operate on hidden directories then as Costas said you can use du -b maybehere*/.* This will allow you to operate on hidden files and directories. If you want only hidden directories then you can specify that with du -b maybehere*/.*/


0

This is how I do it: install a clean linux (not necessary, but makes life more pleasant in step 4) install etckeeper run git init in your home create .gitignore and add everything that looks like it doesn't interest you or that might change a lot. Be sure to add things like *.cache, *.lock etc. I don't recommend adding /* because you won't be notified ...



Top 50 recent answers are included