Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Ubuntu disk management commands

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail what the Ubuntu disk management commands are, and the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Ubuntu disk management command is a good way to use, here we mainly introduce Ubuntu disk management command can be helpful to everyone, including the introduction of Ubuntu print management and other aspects.

1 Ubuntu disk Management # df df is used to report the total capacity, usage, and remaining capacity of the file system.

2 Ubuntu disk Management # du du-b / home check the capacity of the current / HOME directory (k) and the capacity of subdirectories (k).

3 Ubuntu disk Management # fdisk fdisk-l View system Partition Information

4 disk management # fdisk fdisk / dev/sdb partitions a new SCSI hard disk

5 disk management # mkfs.ext3 Mkfs.ext3 / dev/sdb1 file system formatted as ext3 file system for * primary partition of * block SCSI hard disk * * mkfs.ext2 Mkfs.ext2/dev/sdb2 format to ext2 file system

6 Ubuntu disk management # mount mount-t file system type device via access Ubuntu disk management # file system type ISO9660 optical drive file system vfat Fat file system (windows) mount optical drive # mount-t iso9660 / dev/cdrom / mnt/cdrom mount FAT # mount-t vfat / dev/hda5 / mnt/cdrom mount the fifth logical partition of ide

7 Ubuntu disk Management # Umount / mnt/cdrom uninstall / mnt/cdrom is empty

8 File permissions # chmod chmod Utility file adds special permissions to the owner of file

Chmod Grour file adds read permission to the group belonging to file

Chmod file adds write permissions to other users of file

Chmod Amurx file subtracts execution rights from all users of file

Chmod 765file is set to full permissions for file owners, read and write rights for affiliate groups, and read and dedication permissions for other users.

9 File permissions # chown chown root / home change the owner of / home to root user

10 File permissions # chgrp chgrp root / home change the subordinate group of / home to the root group

11 print Management # redhat-config-printer-tui enters the printer installation interface

12 print management # lp lp-d hptr file print file to hptr printer

13 print Management # lpq Lpq-P Printer name View the status of the printer

14 print Management # lprm Lprm-P Printer name a Delete print jobs within the printer

15 print Management # disable Disable-r "changing paper" HPtr disable the printer and prompt the reason

16 print Management # enable Enable HPtr re-enable the disabled

This is the end of this article on "what are the Ubuntu disk management commands?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report