- set up file with command: set file_name
- read content of file with command: read file_name
- list total files with command: ls
- copy source file to destination file with command: cp source_file destinaation_file
- remove file with command: rm file_name
-
set a.txt Type the content you want to save in a.txt. With twice Enter to finish the input.
-
read a.txt Read the content of a.txt
-
ls List the current total files
-
cp a.txt b.txt Copy a.txt to a new file named b.txt
-
rm a.txt remove the file of a.txt
In current folder type in make, the main is the final proogram.
I didn't kow. Just have a try : )
![Screenshot from 2020-08-24 10-36-17](../../Pictures/Screenshot from 2020-08-24 10-36-17.png)
![Screenshot from 2020-08-24 10-37-13](../../Pictures/Screenshot from 2020-08-24 10-37-13.png)
![Screenshot from 2020-08-24 10-37-46](../../Pictures/Screenshot from 2020-08-24 10-37-46.png)
![Screenshot from 2020-08-24 10-38-15](../../Pictures/Screenshot from 2020-08-24 10-38-15.png)
![Screenshot from 2020-08-24 10-40-29](../../Pictures/Screenshot from 2020-08-24 10-40-29.png)
![Screenshot from 2020-08-24 10-41-08](../../Pictures/Screenshot from 2020-08-24 10-41-08.png)
set up a test file.
![Screenshot from 2020-08-24 10-42-35](../../Pictures/Screenshot from 2020-08-24 10-42-35.png)
remove test file.
![Screenshot from 2020-08-24 10-43-58](../../Pictures/Screenshot from 2020-08-24 10-43-58.png)