Linux Command: h.You can also reference your user directory as ~. To move to thi
ID: 3746088 • Letter: L
Question
Linux Command:
h.You can also reference your user directory as
~. To move to this location, type
cd ~. 26.)What does your prompt list now?
i.Type ls and you should see the passwd file. We will move this file to a subdirectory. First, create
the subdirectory named temp by using mkdir temp. Change directory to this new directory.
27.)What command did you enter? Type ls to see whether any files are already there.
j. To rename or move a file, you can use the same command,
mv. To move a file, you would enter mv filename new directory and to rename a file you would enter
mv filename newname.
Move the passwd file to the temp directory. 28.)What command did you enter?
k.Rename the file that you moved in step i to
accounts. 29.) What command did you enter?
Explanation / Answer
h.You can also reference your user directory as
~. To move to this location, type
cd ~. What does your prompt list now?
It has moved to the root directory
i.Type ls and you should see the passwd file.
ls
We will move this file to a subdirectory. First, create
the subdirectory named temp by using mkdir temp.
mkdir temp
Change directory to this new directory.
cd temp
To move the passwd file from the previous directory and it asks the user whether overwritting should happen or not
mv -i ./passwd temp/newFile
27.)What command did you enter? Type ls to see whether any files are already there.
j. To rename or move a file, you can use the same command,
mv. To move a file, you would enter mv filename new directory and rename a file you would enter
Assuming we are in a temp directory.
mv newFile newFile1
newFile is renamed to newFile1
Change directory to this new directory.
cd temp
To move the password file from the previous directory and it asks the user whether overwriting should happen or not
mv -i ./passwd temp/newFile
Move the password file to the temp directory.
k.Rename the file that you moved in step I to accounts. 29.) What command did you enter?
mv newFile accounts
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.