Popular linux commands - Debian GNU/Linux 8 (jessie)

I'm using Debian GNU/Linux 8 (jessie) - Drupal Virtual Machine from bitnami. It's easy way to install server with drupal on your localhost. VirtualBox + Drupal virtual machine.

Linux version

Use next command:

  1. cat /etc/*-release

Linux version command

Most important command -

Server restart

  1. sudo /opt/bitnami/ctlscript.sh restart

Cron log

  1. sudo grep CRON /var/log/syslog

Stop/start/restart cron

  1. sudo /etc/init.d/cron start
  2. sudo /etc/init.d/cron stop
  3. sudo /etc/init.d/cron restart

Add cron task

  1. sudo crontab -e

List of the cron tasks

  1. sudo crontab -l

Current network configuration

  1. sudo ifconfig

Edit network configuretion

  1. sudo nano /etc/network/interfaces
  2. sudo nano /etc/resolv.conf

interfaces file lunux

resolv.conf

Network restart

  1. sudo /etc/init.d/networking restart
  2. // or
  3. systemctl restart network

Network test

  1. test: ping -c1 google.com &>/dev/null && echo "online" || echo "offline"

Free disk space

  1. df -h

 

free disk space linux command

Search

  1. sudo find / -name my.cnf
Tags: