Linux Vs Ubuntu Commands
Linux Vs Ubuntu Commands
Linux commands
-
sudo passwd root Reset root user password
Systemctl start sshd To start the ssh service
Systemctl status sshd To know the status of ssh service
uname -a To check the server type and name
Example:
network:
version: 2 https://www.howtogeek.com/118337/stupid-geek-
renderer: networkd
ethernets: tricks-change-your-ip-address-from-the-command-
enp0s3:
dhcp4: no line-in-linux/
addresses:
[192.168.1.233/24]
gateway4: 192.168.1.1
nameservers:
addresses:
[8.8.8.8,8.8.4.4]
PVcreate https://linoxide.com/linux-how-to/lvm-
VGcreate /extend configuration-linux/
LVMcreate /extend
/how-to-use-lvm-to-manage-storage-devices-on-
ubuntu-16-04
https://fabianlee.org/2016/07/26/ubuntu-
extending-a-virtualized-disk-when-using-lvm/
https://www.techotopia.com/index.php/Adding_a_
New_Disk_Drive_to_an_Ubuntu_Linux_System
Remove PV from LVM learnitguide.net/2016/08/remove-lvm-physical-
volume-pv-in-linux.html
Change root user password https://www.cyberciti.biz/faq/change-root-
password-ubuntu-linux/
Change apache port number https://www.ostechnix.com/how-to-change-
apache-ftp-and-ssh-default-port-to-a-custom-port-
part-1/
Apache restart https://www.cyberciti.biz/faq/star-stop-restart-
apache2-webserver/
Finding the directory size https://www.cloudbooklet.com/find-directory-size-
in-ubuntu-debian/