bashrc working now

This commit is contained in:
2025-06-11 09:47:45 -04:00
parent 73558cf551
commit 3a5fdd88ba
3 changed files with 57 additions and 8 deletions

View File

@@ -1,12 +1,12 @@
services:
linux.softwareshinobi.com-server:
container_name: linux.softwareshinobi.com-server
image: softwareshinobi/linux.softwareshinobi.com:server
build:
build:
context: server
@@ -20,17 +20,13 @@ services:
- "2222:22"
volumes:
- "./tmp:/tmp"
linux.softwareshinobi.com-landing:
container_name: linux.softwareshinobi.com-landing
image: softwareshinobi/linux.softwareshinobi.com:landing
build:
build:
context: landing
@@ -39,4 +35,3 @@ services:
ports:
- "2280:80"

View File

@@ -1,2 +1,48 @@
#!/bin/bash
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias a="ls -lha"
alias @ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias r="reset;clear;"
## incoming
alias ll='ls -l'
alias r="reset;clear;"
##
alias cd..='cd ..'
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
##
alias @memory-info='free -m -l -t'
alias @memory-top='ps auxf | sort -nr -k 4 | head -10'
alias @memory-top-10='ps auxf | sort -nr -k 4 | head -10'
alias @cpu-info='lscpu'
alias @cpu-top='ps auxf | sort -nr -k 3'
alias @cpu-top-10='ps auxf | sort -nr -k 3 | head -10'
alias @net-open-ports="sudo netstat -tlpn"
alias @net-external-ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias @net-internal-interfaces="dig +short myip.opendns.com @resolver1.opendns.com"

View File

@@ -39,6 +39,14 @@ chmod -R 700 /home/shinobi/.ssh
chown -R shinobi: /home/shinobi/.ssh
##
## set up bashrc
##
cp bashrc/.bashrc /home/shinobi/.bashrc
chmod +x /home/shinobi/.bashrc
##
## restrict permissions on home
##