• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
kalitut

kalitut

KaliTut Where you learn about Kali Linux tips and Linux system

  • Home
  • Raspberry Pi
  • About us
  • Privacy Policy

How To View Block Devices And File System Under RHEL7

December 29, 2014 by Kalitut Leave a Comment

Facebook0Tweet0Pin0Email0
Under RHEL7 view block devices filesystem is more or less same as we used to do it under RHEL6. Lets understand some interesting commands to view block devices and filesystem under RHEL7.

viewblockdevicesrhel7-4672435

lsblk:
lsblk command allows you to display a list of available block devices.

selection_195-300x143-8591423

lsblk command displays the device name (NAME), major and minor device number (MAJ:MIN), if the device is removable (RM), what is its size (SIZE), if the device is read-only (RO), what type is it (T YPE), and where the device is mounted (MOUNT POINT ). Reember, by default lsblk command shows ouput in tree format. To display the information as an ordinary list, add the -l command line option.
blkid

blkid command, as was under RHEL6, in RHEL7 is used to view information about available block devices.

1-8167342


 Be default, the blkid command displays available attributes such as its universally unique identifier (UUID), file system type (T YPE), or volume label (LABEL), as in command one, in above snapshot.

You can also use blkid to display information about a particular device only, specify the device name on the command line – blkid /dev/sda1, as in command two, above snapshot.

Further, you can also use the above command with the -p and -o udev command line options to obtain more detailed information. You need to have root privileges to run the third command in above snapshot.
findmnt

findmnt command allows you to display a list of currently mounted file systems. findmnt command displays the target mount point (TARGET ), source device (SOURCE), file system type (FSTYPE), and relevant mount options (OPT IONS).

3-1966621

Like lsblk command, findmnt lists file systems in a tree-like format. T o display the information as an ordinary list, add the -l command line option.

4-8969976

 df

Exactly like in RHEL6, here in RHEL7 df command allows you to display a detailed report on the system’s disk space usage. df command displays its name (Filesystem ), size (1K-blocks or Size), how much space is used (Used), how much space is still available (Available), the percentage of space usage (Use%), and where is the file system mounted (Mounted on).

Similar like in RHEL6, the df command in RHEL7 shows the partition size in 1 kilobyte blocks and the amount of used and available disk space in kilobytes. To view the information in megabytes and gigabytes, supply the -h command line option, human-readable format.

5-4923394

du

du command allows you to displays the amount of space that is being used by files in a directory. Like df, du command displays the disk usage in kilobytes. T o view the information in megabytes and gigabytes, supply the -h command line option and to get the summary information only use -s option.

6-4107403

And lastly, you have the gnome-system-monitor tool in rhel7 viewing block devices & filesystem.

7-7920267
Facebook0Tweet0Pin0Email0

Filed Under: Tutorials

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Follow us

  • Facebook
  • Twitter
  • YouTube

Categories

  • Android pentesting tools
  • Arduino
  • Books
  • Darknet
  • database
  • General
  • Kali Linux
  • Linux
  • Linux Commands
  • Network Administrator
  • Penetration Testing
  • Penetration Testing Tools
  • Raspberry Pi
  • resources
  • Review
  • Termux
  • Tutorials
  • Ubuntu
  • Uncategorized
  • Video Tutorials
  • vmware
  • WiFi Adapter
  • WiFi Pentesting
  • Wireless Router
  • Wireshark

Recent Posts

  • Introduction to Security Penetration using Linux
  • Install Kali Linux
  • Exploit development resources
  • Zoomeye hacker search engine
  • The only Penetration testing resources you need

Latest from WiFi Adapter

alfa network awus036h Review

Alfa AWUS036H USB WiFi adapter, supports Monitor mode AWUS036H operates in the 2.4GHz frequency range, with 802.11b/g communication standards

  • Home
  • About us
  • Privacy Policy
  • Affiliate disclaimer

Copyright © 2021

Share this ArticleLike this article? Email it to a friend!

Email sent!