How to use commands to manage files in Linux

  
                

There is a concept in Linux systems, that is, everything is a file. So when it comes to the management of Linux, it is actually the management and use of files. This article will introduce how to use the command to manage files in a Linux system.

First, create a file touch

touch file1 create an empty file

The touch command can also be used to change the access time and modification time of an existing file without changing the file content.

touch file1

The modification time of the file1 file has been updated from the original time. If only the access time is changed, the -a parameter can be used. If only the modification time is changed, the -m parameter can be used. By default, Touch uses the current time, you can specify the time by adding a specific timestamp to the -t parameter:

Second, create a directory mkdir

mkdir dir1

One page total 2 pages

Copyright © Windows knowledge All Rights Reserved