Som bekant går det att använda ett kommando i terminalen för att se vad som tar plats: du . | sort -nr > out.txt Men det finns också ett kommando för att se antal filer i alla undermappar, för att se vilka mappar som behöver komprimeras. Det är mer komplext, men funkar lika bra i …
Etikettarkiv: Terminal
The ”terminal” is the command line interface on OSX, which allows using the same types of commands as in Linux.
Using find with grep to find strings in files
Here is how to find files containing a certain string. This works in any system supporting Unix commands, including OSX. find . -name ’*.xml’ -exec grep ’string to find’ {} \; Sometimes the files have no line breaks, so you just want to see the filename of the matches. Then you need the -l parameter. …
Fortsätt läsa ”Using find with grep to find strings in files”
Kolla diskutrymme i Unix eller OSX
Så här kollar ni vilka filer och mappar som väger mest i Linux, OSX eller liknande system: du / | sort -nr > out.txt