Can Any body gives the answer of these questions?
1. Make subdirectories called work and play.
2. Delete the subdirectory called work.
3. Copy the file /etc/passwd into your home directory.
4. Move it into the subdirectory play.
5. Change into subdirectory play and create a symbolic link called terminal that
points to your tty device. What happens if you try to make a hard link to the tty
device?
6. What is the difference between listing the contents of directory play with ls -l and ls -L?
7. Create a file called hello.txt that contains the words "hello world". Can you
use "cp" using "terminal" as the source file to achieve the same effect?
8. Copy hello.txt to terminal. What happens?
rahulrevolution
-6
Newbie Poster
Recommended Answers
Jump to PostThis sounds very much like homework. What have you tried and how have you failed?
Jump to PostYou can change directory with the
cd
command. You can create links withln
command (look at the-s
option).
As for 7, try to usecp
on the symbolic link once you have it set up. Play around with it, try a few different things. You'll learn some things …
All 5 Replies
L7Sqr
227
Practically a Master Poster
rahulrevolution
-6
Newbie Poster
L7Sqr
227
Practically a Master Poster
rahulrevolution
-6
Newbie Poster
L7Sqr
227
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.