alexkras.com

  • Home
  • Top Posts
  • Resume
  • Projects
  • YouTube
  • Boots to Bytes
  • About
  • Contact

Ubuntu Linux Terminal Commands Cheat Sheet

March 16, 2013 by Alex Kras Leave a Comment

Add New User

adduser

Add New Group

groupadd devs

Add user to a suplimentary group

usermod -a -G admin alex

See user groups

groups

Change Group Ownership for a directory

sudo chgrp -R devs tomcat

Change Time Zone

sudo dpkg-reconfigure tzdata

Select ETC -> Greenwitch

Change hostname

sudo vim /etc/hostname

rename and restart

Restart computer

sudo shutdown -r now

Adding Google DNS to Ubuntu via Terminal

sudo vim /etc/resolv.conf

Add line:

nameserver 8.8.8.8

Restart Network Manager:

sudo service network-manager restart

Renaming Ubuntu Machine

  1. Edit /etc/hostname
  2. Edit /etc/hosts
  3. restart

Filed Under: Ubuntu

Subscribe to this Blog via Email

New posts only. No other messages will be sent.

You can find me on LinkedIn, GitHub, Twitter or Facebook.

Leave a Reply Cancel reply

Copyright © 2019 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in