• Make a directory name ET506_Lecture2 • Make a file called myfile.txt inside ET506_Lecture2 • Copy myfile.txt with name myfile_1.txt inside ET506_Lecture2 • Move myfile.txt to the root directory with name root_file.txt Remember root is "/" • Delete myfile_1.txt from ET506_Lecture2 • Delete directory ET506_Lecture2 Remember you can't delete a directory if you are in it • Rename root_file.txt to root_new_file.txt

LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
5th Edition
ISBN:9781337569798
Author:ECKERT
Publisher:ECKERT
Chapter7: Working With The Bash Shell
Section: Chapter Questions
Problem 15RQ
icon
Related questions
Question
Please answer this ques. i am lost
Make a directory name ET506_Lecture2
• Make a file called myfile.txt inside ET506_Lecture2
• Copy myfile.txt with name myfile_1.txt inside ET506_Lecture2
• Move myfile.txt to the root directory with name root_file.txt
Remember root is "/"
• Delete myfile_1.txt from ET506_Lecture2
• Delete directory ET506_Lecture2
Remember you can't delete a directory if you are in it
• Rename root_file.txt to root_new_file.txt
A
jcayaya@jcayaya-virtual-machine: - a
5 mkdir ET506_Lecture2
$ touch ET566 Lecture2/myfile.txt
$ cp ET506_Lecture2/myfile.txt ET506_Lecture2/
$ sudo nv ET506_Lecture2/myfile.txt /root_file
jcayaya@jcayaya-virtual-machine:
jcayaya@jcayaya-virtual-machine:
jcayaya@jcayaya-virtual-nachtne:
1cayaya@jcayaya-virtual-nachtne:
nyfile_1.txt
.txt
[sudo] password for jcayaya:
jcayayaajcayaya-virtual-nachtne:
jcayayaajcayaya-virtual-nachtne:
jcayaya@jcayaya-virtual-machine:
sudo rn /root_file.txt
jcayaya@jcayaya-virtual-nachtne: -5
$ rn ET506_Lecture2/myfile_1.txt
$ rm -r ET506_Lecture2
$ sudo cp /root_file.txt /root_new_file.txt |
Transcribed Image Text:Make a directory name ET506_Lecture2 • Make a file called myfile.txt inside ET506_Lecture2 • Copy myfile.txt with name myfile_1.txt inside ET506_Lecture2 • Move myfile.txt to the root directory with name root_file.txt Remember root is "/" • Delete myfile_1.txt from ET506_Lecture2 • Delete directory ET506_Lecture2 Remember you can't delete a directory if you are in it • Rename root_file.txt to root_new_file.txt A jcayaya@jcayaya-virtual-machine: - a 5 mkdir ET506_Lecture2 $ touch ET566 Lecture2/myfile.txt $ cp ET506_Lecture2/myfile.txt ET506_Lecture2/ $ sudo nv ET506_Lecture2/myfile.txt /root_file jcayaya@jcayaya-virtual-machine: jcayaya@jcayaya-virtual-machine: jcayaya@jcayaya-virtual-nachtne: 1cayaya@jcayaya-virtual-nachtne: nyfile_1.txt .txt [sudo] password for jcayaya: jcayayaajcayaya-virtual-nachtne: jcayayaajcayaya-virtual-nachtne: jcayaya@jcayaya-virtual-machine: sudo rn /root_file.txt jcayaya@jcayaya-virtual-nachtne: -5 $ rn ET506_Lecture2/myfile_1.txt $ rm -r ET506_Lecture2 $ sudo cp /root_file.txt /root_new_file.txt |
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,