![]() ![]() ![]() lib/mysql/my_database_dir/another_big_table. lib/mysql/my_database_dir/a_big_table.ibdĩ97M. Sudo du -aBM 2>/dev/null | sort -nr | head -n 10ġ825M. original a regular expression describing the word to replace (or just the word itself) new the text to replace it with. Note: Prefix with sudo to include directories that your account does not have permission to access.Įxample showing top 10 biggest files and directories in /var (including grand total). save back to the original file) The command string: s the substitute command. Leave off more if using a smaller number.2>/dev/null - exclude "permission denied" error messages (thanks arguments:.To display the full path of a file in the terminal just drag the file's icon into the. If you want to access /path/to/the force then you need to do cd /path/to/the\ force. And don't forget that space characters need to be escaped within the terminal. -BM to output the sizes in megabyte (M) block sizes (B) If you are using the terminal, just use pwd to know the absolute path of your current location.Then you can navigate to folder you already mounted with. Use this command: sudo mount /dev/sdd1 /media/mountDrive. This folder will be used for the mount point. du -aBM 2>/dev/null | sort -nr | head -n 50 | more When I want to use a usb drive in terminal I do this: Create a folder in /media with: mkdir /media/mountDrive. My favorite solution uses a mix from several of these good answers. Or to search in all files in the current directory and all sub-directories for a particular string: grep -R ''.To search for a file by name in the current directory and all sub-directories: find. It allows to browse through the directories and show percentages of disk usage with ncurses library. In a terminal: To list all files in the current directory and all sub-directories: find. It provides a fast and easy-to-use interface through famous du utility. On the "related packages" section of gt5, I found ncdu. It is possible to navigate and ascend to directories by using cursor-keys with text based browser (links, elinks, lynx etc.) ![]() It displays what has happened since last run and displays dir size and the total percentage. This small and effective programs provides more convenient listing than the default du(1). Years have passed and disks have become larger and larger, but even on this incredibly huge harddisk era, the space seems to disappear over time. One application that looks very promising is gt5. The next command find files between 10MiB and 12MiB: find / -size +10M -size -12M -lsĪpt-cache search 'disk usage' lists some programs available for disk usage analysis. If you want to find files between a certain size, you can combine it with a "size lower than" search. The next command will list all files larger than 10MiB ( not to be confused with 10MB): find / -size +10M -ls If you just need to find large files, you can use find with the -size option. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |