Skip to content

Instantly share code, notes, and snippets.

View ctrlouis's full-sized avatar

ctrlouis

View GitHub Profile
@ctrlouis
ctrlouis / gist:7f3dfdf7f3486592edd1d23db12d77a7
Created December 21, 2022 13:35
Sort all directories based on their size
du -sh -- * | sort -rh # Files and directories, or
du -sh -- */ | sort -rh # Directories only
@ctrlouis
ctrlouis / 01-install_gui_app.sh
Last active May 16, 2022 21:18
Ubuntu 20.04+ config
#!/bin/bash
# Apps
## mpv (video player)
sudo apt install mpv
## discord
sudo snap install discord
## filezilla
sudo apt-get install -y filezilla

Default user chmod

Folder : 775 find . -type d -print | xargs chmod 775

File : 664 find . -type f -print | xargs chmod 664