Tags » Gnu/ Linux

Linux Bash History




history -c && history -w

Operating Systems

Static vs Shared

  • Static linking: one large exe file
  • Shared (dynamic) linking: a small exe file plus one or more .dll files (.so files in Linux or .dylib in OS X)
Operating Systems

CHMOD Calculation

  • r = 4
  • w = 2
  • x = 1
  • – = 0

-rw——- (600) — Only the owner has read and write permissions.

-rw-r–r– (644) — Only the owner has read and write permissions; the group and others can read only. 107 more words

Operating Systems

Free SSL for VestaCP on CentOS

cd /usr/local
yum install git -y
git clone https://github.com/letsencrypt/letsencrypt.git
git clone https://github.com/interbrite/letsencrypt-vesta.git
mkdir -p /etc/letsencrypt/webroot
ln -s /usr/local/letsencrypt-vesta/letsencrypt.conf /etc/httpd/conf.d/letsencrypt.conf
ln -s /usr/local/letsencrypt/letsencrypt-auto /usr/local/bin/letsencrypt-auto
ln -s /usr/local/letsencrypt-vesta/letsencrypt-vesta /usr/local/bin/letsencrypt-vesta
service httpd restart
letsencrypt-vesta admin mysite.com
… 159 more words
Operating Systems

Raspberry Pi Size of Directories

Calculate all directory sizes using:

q to exit

Operating Systems

Transmission Log

sudo transmission-daemon --logfile /var/log/transmission.log
Operating Systems