Skip to content

Instantly share code, notes, and snippets.

@mrsombre
Last active September 29, 2022 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrsombre/f80af40996966a24184b9728adf75634 to your computer and use it in GitHub Desktop.
Save mrsombre/f80af40996966a24184b9728adf75634 to your computer and use it in GitHub Desktop.
Linux commands
## 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