Listing the free space on your Linux system. Using the df command to list this on the command-line.
The df command for Linux will display a listing of your partitions and how much space is available. The -H parameter shows the outputs in human readable formats.
ubuntu@ubuntu:~/Documents$ df -Hla Filesystem Size Used Avail Use% Mounted on /cow 1.8G 210M 1.6G 12% / proc 0 0 0 - /proc sysfs 0 0 0 - /sys fusectl 0 0 0 - /sys/fs/fuse/connections udev 1.8G 13k 1.8G 1% /dev devpts 0 0 0 - /dev/pts tmpfs 714M 1.2M 713M 1% /run /dev/sr0 2.2G 2.2G 0 100% /cdrom /dev/loop0 2.1G 2.1G 0 100% /rofs none 0 0 0 - /sys/kernel/debug none 0 0 0 - /sys/kernel/security tmpfs 1.8G 115k 1.8G 1% /tmp none 5.3M 4.1k 5.3M 1% /run/lock none 1.8G 107k 1.8G 1% /run/shm binfmt_misc 0 0 0 - /proc/sys/fs/binfmt_misc gvfs-fuse-daemon 0 0 0 - /home/ubuntu/.gvfs /dev/sdh1 159G 5.2G 154G 4% /target /cdrom 2.2G 2.2G 0 100% /target/cdrom /dev 1.8G 13k 1.8G 1% /target/dev |
To list the amount of free space on the / root folder, this command will suffice.
ubuntu@ubuntu:~/Documents$ df -Hla | head -n 2 Filesystem Size Used Avail Use% Mounted on /cow 1.8G 211M 1.6G 12% / |
Another useful command I just found is the lscpu command. This will list the CPUs installed on your system and a lot of useful information about each one.
ubuntu@ubuntu:~/Documents$ lscpu Architecture: i686 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 2 Core(s) per socket: 2 CPU socket(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 37 Stepping: 2 CPU MHz: 1197.000 BogoMIPS: 5866.47 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 4096K |
Everyone should know about the lspci command, this will list your installed hardware. The sudo lshw command will also perform this task. These commands are useful when you are posting about a problem on a Internet message board and you are required to post hardware information.
ubuntu@ubuntu:~/Documents$ lspci 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12) 00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06) 00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06) 00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller (rev 06) 01:00.0 USB Controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03) 03:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02) 03:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02) 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03) 05:01.0 Multimedia audio controller: Creative Labs Ectiva EV1938 05:02.0 Multimedia controller: Philips Semiconductors SAA7134/SAA7135HL Video Broadcast Decoder (rev 01) 05:06.0 FireWire (IEEE 1394): Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) 3f:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) 3f:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) 3f:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) 3f:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02) 3f:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) 3f:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02) |
Linux systems used to have the /proc/pci file that allowed you to type cat /proc/pci and see your hardware information as shown in this screenshot of Debian 3.0, but that is deprecated now.