CorpXeno

2 Feb 2023

Linux (Ubuntu) Basic Admin Commands

Linux

Managing System hardware:

Get the disk details:

  • df -ht ext4
  • Df -h

To get the details of all the blocks mounted to your physical server:

  • Lsblk | grep sd

Mount unused block:

  • Sudo mkdir /media/newplace
  • Sudo mount /dev/sdb2 /media/newplace
  • df -ht ext4

Dmsg for kernel:

  • Dmesg | grep wl

H/W details:

  • Sudo lshw

Navigating File system:

  • ls -al : lists directory contents of files and directories.
  • touch : creating a new empty file. With the touch command, you can change access, modify and change time of files and folders.
  • cd: change directory
  • pwd: present working directory detail

Creating Data archives:

Networking: