Skip to content

Instantly share code, notes, and snippets.

@fanpero87
fanpero87 / Linux Alias
Last active July 28, 2024 11:52
Alias for Linux (Debian/Ubuntu)
## 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"
#!/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
@fanpero87
fanpero87 / docker-install.sh
Last active February 10, 2023 04:06
Docker Installation on Ubuntu
#!/bin/bash
# Install Docker for Ubuntu
sudo apt update
sudo apt install -y \
ca-certificates \
curl \
gnupg \
lsb-release