Linux Command Practice 1

1. Run_____________ code, record the experimental results.

1.Program code: (Student to fill in)

mkdir ./wuli201

mkdir -p wuli202/zhang3

mkdirp ./wuli20/zhang3/li4/wang5

rm r ./wuli20/zhang3/li4/wang5

rm rf ./zhang3/wang5

cd /etc

cd /media

cd ~ or cd $HOME

cd ~/wuli202/zhang3

cd ../../

cd ~ or cd $HOME

cd /etc/ssh

2. Experimental results: (Student to fill in)

Linux Command Practice 1

2. Run_________ code, record the experimental results.

1.Program code: (Student to fill in)

cp <source file> <destination file>

cpfile.txt file.old

cp /etc/profile ./

cp passwd.cp ../

cp –r /etc/init.d ./

mv <source file> <destination file>

mvpasswd.cp mypasswd

mv ~/wuli202/zhang3 ~/wuli201

mv * ~/zhang3

2.Experimental results: (Student to fill in)

Linux Command Practice 1Linux Command Practice 1

3. Run_______________ code, record the experimental results.

1.Program code: (Student to fill in)

rm –r <file>

rmfile.old

rm ./profile

rm –r wuli202

cat /etc/profile

tail /etc/profile

2.Experimental results: (Student to fill in)

Linux Command Practice 1Linux Command Practice 1

Leave a Comment