Last active
September 29, 2022 12:45
-
-
Save mrsombre/f80af40996966a24184b9728adf75634 to your computer and use it in GitHub Desktop.
Linux commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## delete files | |
# rm indexed | |
rm a_{000750..000850} | |
# delete old | |
find . -type f -mtime +30 -delete | |
# delete by size | |
find . -type f -size 1k -delete | |
# delete dir | |
find . -depth -mtime +30 -execdir rm -rf {} + | |
## alias | |
alias ll='ls -Alh --color=always --time-style=long-iso --group-directories-first' | |
alias ds='du -h -d 1 .' | |
## .vimrc | |
set number | |
# Устанавливаем go-task | |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin | |
curl -sSL https://github.com/go-task/task/releases/download/v3.15.2/task_linux_amd64.tar.gz | sudo tar -xz -C /usr/local/bin | |
# Устанавливаем composer | |
curl -sSL https://getcomposer.org/installer | php -- --install-dir=~/.local/bin --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment