Consider the following directory hierarchy:
stevedirectory and types
lswhile in the root directory?
bin etc lib users usr
Suppose one is currently in the
jondirectory, then create a new text file named
greeting.javain this new directory and open it for editing? Finally, what additional command will rename
mkdir ./jon/lab03 nano ./jon/lab03/greeting.java mv ./jon/lab03/greeting.java ./jon/lab03/HelloWorld.java
rm ./jon/lab03/greeting.java rmdir ./jon/lab03
lab01directory contains a file named
CoolTool.java. Give two commands for copying this file to the
lab02directory. The first should use only relative addressing, while the second should use absolute addressing, rename the file to
Tool.java, and delete the original file, all at the same time.
cp CoolTool.java ../lab02 mv CoolTool.java /users/student/steve/lab02/Tool.java