Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagebash
themeEmacs
du -hcx --max-depth=1

To sort:

Code Block
languagebash
themeEmacs
du -hc --max-depth=1 | sort -h

echo '' > /directory/filename

...

SSH root access from a specific IP

Code Block
languagebash
themeEmacslanguagebash
Match Address 192.168.1.100
        PermitRootLogin yes

...

Example service file

Code Block
languagebash
themeEmacslanguagebash
[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
languagebash
themeEmacslanguagebash
$ dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync

Network Speed

Code Block
languagebash
themeEmacslanguagebash
wget -O /dev/null http://cachefly.cachefly.net/100mb.test