-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_aliases
More file actions
executable file
·71 lines (59 loc) · 2.33 KB
/
bash_aliases
File metadata and controls
executable file
·71 lines (59 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/env bash
# SENTINEL Core Aliases
# Enhanced shell aliases for improved productivity and security
# Load additional alias files from directory
# Basic utilities
alias q='exit' # Simple alias to exit the terminal
alias rebash='exec bash -l' # Reload bash configuration
# Color support for common commands (if color support is enabled)
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias diff='diff --color=auto'
alias ip='ip -color=auto'
# File operations
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias ls-readdir='ls --color=none --format commas'
alias l1='ls -1'
alias la1='ls -a -1'
# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# System information
alias sysinfo='echo "CPU:"; lscpu | grep "Model name"; echo -e "\nMemory:"; free -h; echo -e "\nDisk:"; df -h'
alias meminfo='free -h'
alias cpuinfo='lscpu'
# Network utilities
alias myip='curl -s https://ipinfo.io/ip'
alias ports='netstat -tulanp'
alias iptables-list='sudo iptables -L -n -v --line-numbers'
alias check-listening='netstat -plunt'
alias open-ports='ss -tulpn'
# Process management
alias psg='ps aux | grep -v grep | grep -i -e VSZ -e'
# Git shortcuts
alias gs='git status'
alias gd='git diff'
alias gl='git log --oneline --graph --decorate --all'
# System updates (cross-distribution)
alias update-system='if command -v apt &>/dev/null; then
sudo apt update && sudo apt upgrade -y;
elif command -v dnf &>/dev/null; then
sudo dnf upgrade -y;
elif command -v yum &>/dev/null; then
sudo yum update -y;
elif command -v pacman &>/dev/null; then
sudo pacman -Syu;
fi'
# Sourcing with optional internet check
alias sourcebash='source ~/.bashrc && check_internet_and_update && echo ".bashrc sourced and apt updated if connected."'
alias sentinel-config='~/.sentinel/sentinel_config_helper.sh'
# Monero unified wallet
export MONERO_WALLET="$HOME/Monero/wallets/MyWallet/MyWallet"
alias monero-gui="~/Programs/monero-gui/monero-wallet-gui"
alias monero-cli="~/Programs/monero-cli/monero-wallet-cli --wallet-file $MONERO_WALLET"
alias monerod="~/Programs/monero-cli/monerod --prune-blockchain"