You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
565 B

6 months ago
### Create new sudo account
Ubuntu Server does this by default
```
sudo adduser {username}
sudo usermod -aG sudo {username}
```
### Disable root
Ubuntu Server does this by default
```
sudo passwd -l root
```
2 years ago
6 months ago
### Change HOSTNAME
```
sudo hostnamectl set-hostname {hostname}
hostnamectl
sudo nano /etc/hosts
/* change hostname in hosts file */
```
### Copy Files and Folders to a Directory
```
cp -a /source/. /dest/
```
-a preserves all file attributes
. copies all files and folders including hidden
2 years ago
## Networking
### Network information
```
ifconfig -a
```