bashrc working now
This commit is contained in:
@@ -20,10 +20,6 @@ services:
|
|||||||
|
|
||||||
- "2222:22"
|
- "2222:22"
|
||||||
|
|
||||||
volumes:
|
|
||||||
|
|
||||||
- "./tmp:/tmp"
|
|
||||||
|
|
||||||
linux.softwareshinobi.com-landing:
|
linux.softwareshinobi.com-landing:
|
||||||
|
|
||||||
container_name: linux.softwareshinobi.com-landing
|
container_name: linux.softwareshinobi.com-landing
|
||||||
@@ -39,4 +35,3 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
|
|
||||||
- "2280:80"
|
- "2280:80"
|
||||||
|
|
||||||
|
|||||||
@@ -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 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"
|
||||||
|
|||||||
@@ -39,6 +39,14 @@ chmod -R 700 /home/shinobi/.ssh
|
|||||||
|
|
||||||
chown -R shinobi: /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
|
## restrict permissions on home
|
||||||
##
|
##
|
||||||
|
|||||||
Reference in New Issue
Block a user