×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What command is used to list the block devices in the SSH terminal?

by EITCA Academy / Thursday, 03 August 2023 / Published in Cloud Computing, EITC/CL/GCP Google Cloud Platform, Getting started with GCP, Persistent Disks, Examination review

To list the block devices in the SSH terminal on Google Cloud Platform (GCP), you can use the `lsblk` command. This command provides a comprehensive view of the block devices attached to your virtual machine instances. In this context, block devices refer to the storage devices that are accessible at the block level, such as persistent disks.

The `lsblk` command displays information about block devices in a hierarchical format, making it easier to understand the relationships between devices and their components. By default, it shows the device name, major and minor numbers, size, and type of each device, along with the relationships between devices.

To use the `lsblk` command, open an SSH terminal to your virtual machine instance and run the following command:

lsblk

The output will provide a tree-like view of the block devices and their components, including disks, partitions, and logical volumes. Here's an example output:

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda      8:0    0   10G  0 disk
└─sda1   8:1    0   10G  0 part /
sdb      8:16   0  100G  0 disk

In the example above, two block devices are listed: `sda` and `sdb`. The `sda` device has a single partition (`sda1`) mounted as the root filesystem (`/`). The `sdb` device does not have any partitions and is currently not mounted.

The `MAJ:MIN` column represents the major and minor numbers associated with each device. The `RM` column indicates whether the device is removable (`1` for removable, `0` for non-removable). The `SIZE` column displays the size of the device, and the `RO` column indicates if the device is read-only (`1` for read-only, `0` for read-write). The `TYPE` column specifies the type of the device, such as disk or partition. Finally, the `MOUNTPOINT` column shows the mount point of the device, if applicable.

By default, the `lsblk` command provides a concise overview of the block devices. However, you can use various options to customize the output format and display additional information. For example, you can use the `-a` option to show all devices, including empty ones, or the `-o` option to specify the columns to display.

The `lsblk` command is a useful tool for listing block devices in the SSH terminal on Google Cloud Platform. It provides a detailed view of the devices and their components, allowing you to understand the storage configuration of your virtual machine instances.

Other recent questions and answers regarding EITC/CL/GCP Google Cloud Platform:

  • Can more be done with the command line than the Cloud Console?
  • Is it necessary for me to use SQL in Google to complete the course?
  • To use SQL on Google, it asks me to make a $10 payment. Please help me?
  • What is the difference between Cloud Storage and Cloud Firestore?
  • To what extent is the GCP useful for web pages or applications development, deployment and hosting?
  • How to calculate the IP address range for a subnet?
  • What is the difference between Cloud AutoML and Cloud AI Platform?
  • What is the difference between Big Table and BigQuery?
  • How to configure the load balancing in GCP for a use case of multiple backend web servers with WordPress, assuring that the database is consistent accross the many back-ends (web servwers) WordPress instances?
  • Does it make sense to implement load balancing when using only a single backend web server?

View more questions and answers in EITC/CL/GCP Google Cloud Platform

More questions and answers:

  • Field: Cloud Computing
  • Programme: EITC/CL/GCP Google Cloud Platform (go to the certification programme)
  • Lesson: Getting started with GCP (go to related lesson)
  • Topic: Persistent Disks (go to related topic)
  • Examination review
Tagged under: Block Devices, Cloud Computing, GCP, Google Cloud Platform, SSH, Terminal
Home » Cloud Computing » EITC/CL/GCP Google Cloud Platform » Getting started with GCP » Persistent Disks » Examination review » » What command is used to list the block devices in the SSH terminal?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (105)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.

Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support

90% of EITCA Academy fees subsidized in enrolment by

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP
    CHAT WITH SUPPORT
    Do you have any questions?
    We will reply here and by email. Your conversation is tracked with a support token.