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 linux file 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 is about what linux file management commands are about. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

The details are as follows:

1. Display the contents of the file

Cat: displaying file contents

Tac: displaying content in reverse order

2. Change file permissions

Chmod: changing file permissions

-R recursive change

Chown: change the file owner

-R recursive change

Chgrp: change the group to which the file belongs

-R recursive change

> chmod 666 1.txt > chown user1 1.txt > chgrp user1 1.txt

3. Link the file

1) protect the source program

2) easy to access

Ln [options] Source file or directory destination file or directory

-s soft link

Changing one file will affect another.

Deleting a source file affects the use of linked files

-d hard link

Hard-linked files look the same as ordinary files

Changing one file will affect another.

Hard-linked files will not be affected after the source file is deleted

4. Find files

Find [directory list] [matching parameters] [matching criteria]

-name queries by file name

-group queries by the group to which the file belongs

-user queries by user name

> find / home/user1-name 1.txt

5. Other related commands

Df check hard disk space

-l view the local hard drive

-h is displayed in 1024

-H is displayed in 1000

-T displays the partition type

-t displays the specified partition type

-x does not display the specified partition type

> df-lh > df-lH

Du View File Siz

-b in bytes

-k in kilobytes

-m in megabytes

-h is displayed in 1024

-H is displayed in 1000

-s display statistics

Du-s 123 Statistics folder size

Mount mount command

Mount / dev/cdrom / mnt/cdrom

Umount uninstall command

Umount / mnt/cdrom

Eject eject CD-ROM drive

Thank you for reading! This is the end of this article on "what are the linux file 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, you can share it out 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