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
## Terminal shortcuts | |
alias ..="cd ../" | |
alias ...="cd ../../" | |
alias ....="cd ../../../" | |
alias .....="cd ../../../../" | |
alias ll="ls -alF --color=auto" | |
alias l="ls -l --color=auto" | |
alias update="sudo apt update && sudo apt upgrade -y" | |
alias install="sudo apt install -y" | |
alias ports="netstat -tulanp" |
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
#!/usr/bin/env bash | |
# script to remove old files | |
# The folder path where the log files are | |
folder_path=/var/log/apache2/ | |
# The location of where I want my script to log what it has done | |
log_of_files=/home/fongo/files_deleted.log |
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
#!/bin/bash | |
# Install Docker for Ubuntu | |
sudo apt update | |
sudo apt install -y \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release |