Difference between revisions of "Linux"

From HackerNet
Jump to: navigation, search
Line 1: Line 1:
 
=Tools=
 
=Tools=
 
+
[[Dd]]<br/>
 +
[[Iptables]]<br/>
 +
[[Systemd]]<br/>
  
 
=Tips'n'trix=
 
=Tips'n'trix=

Revision as of 18:35, 7 May 2015

Tools

Dd
Iptables
Systemd

Tips'n'trix

Ta reda på publik IP

curl ifconfig.me

Testa hårdvaruaccelerering

openssl speed -evp AES256

Speedtest

wget -O speedtest-cli https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
chmod +x speedtest-cli
./speedtest-cli --simple

Lista filer efter storlek

for i in T G M K; do du -hsx * | grep "[0-9]$i\b" | sort -nr; done 2>/dev/null

Restricted Shell

useradd[mod] -s /usr/sbin/scponly user1

Process Run Time

ps -p PID -o etime=

Intervjufrågor