Educoder Linux from entry to proficient Chapter 4 Linux file/directory management

Insert picture description here

Insert picture description here

touch file1 file2
rm -rf oldFile1 oldFile2

Insert picture description here
Insert picture description here
You can use the ls command to check whether the directory is deleted successfully.

mkdir newDir1 newDir2
rm -rf oldDir2
rmdir oldDir1 oldDir2
cp file1 file2 Dir
cp file1 Dir/file1Cpy
mv file3 file4 Dir
mv file5 file6

4

cp -r Dir1 Dir2 Dir
cp -r Dir1 Dir/Dir1Cpy
mv Dir3 Dir4 Dir
mv Dir5 Dir6

5

cat file1
head -n 5 file1
tail -n 5 file2
ls -a /home

Guess you like

Origin blog.csdn.net/m0_45311187/article/details/110877398