In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you what commonly used CentOS commands, the content is very detailed, interested friends can refer to, hope to be helpful to you.
This time, we updated some common CentOS commands. It is of great significance in operation. This time we have also sorted out and explained some important CentOS commands. I hope it will be helpful to everyone when using CentOS.
Common CentOS commands for deleting files
Rm
NO1. Delete files in the current directory
[root@rehat root] # rm test.txt
NO2. Force the deletion of files in the current directory without prompting
[root@rehat root] # rm-f test.txt
NO3. Forced deletion of the entire directory, including all directories and files, requires administrator permission
[root@rehat root] # rm-r-f test
Common CentOS commands for deleting folders
Rmdir
NO1. Delete an empty directory
[root@rehat root] # rmdir emptydir
NO2. Delete multi-level empty directory
[root@rehat root] # rmdir-p emptydir/d1/d11
Common CentOS commands for mounting and unmounting file systems
Mount / umount
NO1. Mount the CD-ROM drive
[root@rehat root] # mount-t iso9660 / dev/cdrom / mnt/cdrom
NO2. Mount the CD-ROM drive, which supports Chinese
[root@rehat root] # mount-t iso9660-o codepage=936,iocharset=cp936 / dev/cdrom / mnt/cdrom
NO3. Mount Windows partition, FAT file system
[root@rehat root] # mount-t vfat / dev/hda3 / mnt/cdrom
NO4. Mount Windows partition, NTFS file system
[root@rehat root] # mount-t ntfs-o iocharset=cp936 / dev/hda7 / mnt/had7
No5. Mount the ISO file
[root@rehat root] # mount-o loop / abc.iso / mnt/cdrom
NO6. Mount the floppy driv
[root@rehat root] # mount / dev/fd0 / mnt/floppy
NO7. Mount flash drive
[root@rehat root] # mount / dev/sda1 / mnt/cdrom
NO8. Mount folders shared by the Windows operating system
[root@rehat root] # mount-t smbfs-o username=guest,password=guest / / machine/path / mnt/cdrom
NO9. Show mounted file system
[root@rehat root] # mount
[root@rehat root] # cat / etc/fstab display system starts the automatically loaded file system
[root@rehat root] # cat / etc/mtab displays the currently loaded file system
The above are updated common commands for organizing CentOS
About which commonly used CentOS commands are shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.