...
Using this command will give you the total Disk Usage for the folder you designate. Useful when trying to track down where precious is being utilized, and tearing down the tree to locate the culprit(s).
To skip network shares:
Code Block |
---|
|
du -hcx --max-depth=1 |
To sort:
Code Block |
---|
|
du -hc --max-depth=1 | sort -h |
echo '' > /directory/filename
...
SSH root access from a specific IP
Code Block |
---|
language | bash |
---|
theme | Emacs | language | bash |
---|
|
Match Address 192.168.1.100
PermitRootLogin yes |
...
Example service file
Code Block |
---|
language | bash |
---|
theme | Emacs | language | bash |
---|
|
[Unit]
Description=Hybris Server
After=syslog.target
After=network.target
[Service]
User=hybris
Group=hybris
WorkingDirectory=/home/hybris/hybris/bin/platform
ExecStart=/home/hybris/hybris/bin/platform/hybrisserver.sh start
ExecStop=/home/hybris/hybris/bin/platform/hybrisserver.sh stop
PIDFile=/home/hybris/hybris/bin/platform/tomcat/bin/hybrisPlatform.pid
[Install]
WantedBy=multi-user.target |
Linux Benchmark Commands
Disk speed
Code Block |
---|
language | bash |
---|
theme | Emacs | language | bash |
---|
|
$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync |
Network Speed
Code Block |
---|
language | bash |
---|
theme | Emacs | language | bash |
---|
|
wget -O /dev/null http://cachefly.cachefly.net/100mb.test |