Skip to content
Snippets Groups Projects
Commit 28d40eb3 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Add aliases for ssh with new session and ps with cgroups and threads

parent e8d6dd28
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,7 @@ alias lsa='ls -AF' ...@@ -28,6 +28,7 @@ alias lsa='ls -AF'
alias llt='ls -hlFtr' alias llt='ls -hlFtr'
alias lat='ls -hlAFtr' alias lat='ls -hlAFtr'
alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null' alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
alias snc='ssh -o ControlMaster=no -o ControlPath=none'
alias ldapsearch='ldapsearch -o ldif-wrap=no' alias ldapsearch='ldapsearch -o ldif-wrap=no'
alias lds='ldapsearch -xZZ' alias lds='ldapsearch -xZZ'
alias ccze='ccze -A -o nolookups' alias ccze='ccze -A -o nolookups'
...@@ -64,6 +65,9 @@ alias pping='prettyping' ...@@ -64,6 +65,9 @@ alias pping='prettyping'
alias pping6='prettyping -6' alias pping6='prettyping -6'
alias p='prettyping -i 0.2' alias p='prettyping -i 0.2'
alias p6='p -6' alias p6='p -6'
alias psc='ps xawf -eo pid,user:12,cgroup:54,args'
alias psct='ps xawf -ewwo pid,nlwp,ppid,c,tname,stat,time:12,user:12,cgroup:54,args'
alias psctt='ps xaw -eTwwo pid,lwp,nlwp,ppid,c,tname,stat,time:12,user:12,cgroup:54,args'
# use colordiff if it exists # use colordiff if it exists
if [ $(which colordiff) ]; then if [ $(which colordiff) ]; then
......
...@@ -32,6 +32,7 @@ alias llt='ls -hlFtr' ...@@ -32,6 +32,7 @@ alias llt='ls -hlFtr'
alias lat='ls -hlAFtr' alias lat='ls -hlAFtr'
alias s='ssh' alias s='ssh'
alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null' alias snk='ssh -o StrictHostKeyChecking=no -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null'
alias snc='ssh -o ControlMaster=no -o ControlPath=none'
alias sr='ssh -J rda.ethz.ch' alias sr='ssh -J rda.ethz.ch'
alias shci='ssh -J phd-jump-hci.ethz.ch' alias shci='ssh -J phd-jump-hci.ethz.ch'
alias shit='ssh -J phd-jump-hit.ethz.ch' alias shit='ssh -J phd-jump-hit.ethz.ch'
...@@ -86,6 +87,9 @@ alias pping='prettyping' ...@@ -86,6 +87,9 @@ alias pping='prettyping'
alias pping6='prettyping -6' alias pping6='prettyping -6'
alias p='prettyping -i 0.2' alias p='prettyping -i 0.2'
alias p6='p -6' alias p6='p -6'
alias psc='ps xawf -eo pid,user:12,cgroup:54,args'
alias psct='ps xawf -ewwo pid,nlwp,ppid,c,tname,stat,time:12,user:12,cgroup:54,args'
alias psctt='ps xaw -eTwwo pid,lwp,nlwp,ppid,c,tname,stat,time:12,user:12,cgroup:54,args'
alias a='ansible' alias a='ansible'
alias a10='ANSIBLE_TIMEOUT=10 ansible' alias a10='ANSIBLE_TIMEOUT=10 ansible'
alias ap='ansible-playbook' alias ap='ansible-playbook'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment