*nix

From Things and Stuff Wiki
Revision as of 23:30, 11 March 2012 by Milk (talk | contribs) (→‎Commands)
Jump to navigation Jump to search


Guides

Tools and help

  • ncdu - ncurses disk usage

Commands

todo; source aliases.zsh

ntpdate pool.ntp.org && hwclock --systohc && hwclock --adjust
  Synchronize both your system clock and hardware clock and calculate/adjust time drift. Do not run this command if you already have ntpd running! [4]
cat /etc/passwd | cut -d: -f 1,3,6 | grep "[5-9][0-9][0-9]"
  List users on a system [5]

Other software

Arch

Debian

X

Window Managers

Openbox

Networking

  • sudo /etc/init.d/<service> restart - ubuntu, restart a service
  • sudo /etc/rc.d/<service> stop | start | restart - arch, service things
  • sudo sh -c "echo 'something' >> /etc/privilegedfile"
  • chown -R user:group . - change all and subitems [6]
  • route -n - display the host's networks and gateway
  • View The Daily Show, etc. in the UK, etc. Mofity HTTP headers; X-Forwarded-For "12.13.14.15" [8]

Cisco

Media

To check;