Ubuntu 18 commands

Ubuntu

Networking file

Ubuntu 18
user@ubuntu: /etc/netplan/01-netcfg.yaml
Ubuntu 16
(different path)

Change user
su usernameX

find Ip address 
hostname -I

List all installed
apt list --installed

disable password login
edit file /etc/ssh/sshd_config
replace line with
PasswordAuthentication no

Restart your ssh server using

sudo service ssh restart [or] sudo restart ssh

List block (list drives)
lsblk

History (list of commands used earlier)
history


Comments

Popular posts from this blog

Pentaho ETL

Copy files from one computer to other using ‘scp’ command