useful linux commands
Table of contents
Open Table of contents
System Information
Get current system Architecture
$ uname -p
# Output
# x86_64
My current system is x86_64
. other values may be i686
, armv7l
, aarch64
, aarch64
. This is the Kernel name of the system.
Current OS Release installed
$ lsb_release -a
The above command will provide information about the current OS installed on the system
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
Get File system information
$ df -h
The above command will provide information about the file system mounted on the system in human-readable format for the size of the file system.
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.9M 1.6G 1% /run
/dev/sda1 458G 11G 424G 3% /
tmpfs 7.8G 18M 7.8G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock