Need answer for these LINUX questions URGENT!!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Need answer for these LINUX questions URGENT!!
# 1  
Old 06-02-2011
Need answer for these LINUX questions URGENT!!

I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions.

Appreciate your time thank you, Smilie

1. Make sure there is no filename1.txt in current directory first. Now, enter vi with "vi filename1.txt" command. vi indicates that it is a new file. After you have completed entering text, you issue the VI command

:wq filename2.txt
to save and exit. Which file is created by VI editor? Explain.


2. Make sure there are no files called file1.txt and file2.txt in the current directory. Then, issue the following commands:
ln –s file1.txt file2.txt
ln –s file2.txt file1.txt
cat file1.txt
What is the error message you got? Explain why.

3. If you look at the permissions associated with a symbolic link, it has universal access. Does this lead to security issues? Why?


4. Review the man pages of ln, cp and mv commands. The synopsis section of the man pages contain the usage and the optional arguments are indicated within […]. From these 3 man pages, find out which command can work with just 1 argument. Give a sample usage and explain what it does.


5. Let us assume that Linux does not have .. entries in Linux directory structure. How will you cd to the parent directory of current directory? Note: Since current directory can be anything, you should give a generic answer (you should explain the process).

Moderator's Comments:
Mod Comment Homework. Closed.

Last edited by Scott; 06-02-2011 at 09:46 AM.. Reason: Closed thread
# 2  
Old 06-02-2011
assignment ?
# 3  
Old 06-02-2011
general inquiry
# 4  
Old 06-02-2011
1,2,5 questions already having the steps.

try it first and let us know, what you think

then, we share our information
# 5  
Old 06-02-2011
These are my answers I am not sure if I am doing it right though, your suggestions would be helpful,

Question 1:

Filename2.txt is created by VI editor. Although, filename1.txt was created it was never saved with the proper save syntax pointing to that file name. However with the :wq filename2.txt, it was overwritten to the filename1.txt when it was saved and exit.

Question 2:
The error message was, cat: file1.txt: Too many levels of symbolic links. I deleted using rm file1.txt and rm file2.txt to make sure there were no such file in the directory.

Question 5: I would assume using cd ..

please share your comments for these and other questions too.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

==please answer the following questions==

Hello :) ! i've few doubts. 1) how can we find the newly attached disk in SOLARIS ? 2) how to change port number of a service ? 3) how can we find that autofs is running in our system without using svcs and prstat commands ? 4) we know that there are several types of dns servers in... (0 Replies)
Discussion started by: vamshigvk475
0 Replies

2. UNIX for Dummies Questions & Answers

Need answer for these LINUX questions URGENT!!

I am very new to LINUX and could not find answer to these questions please submit your comments and suggestions to answer these questions. Appreciate your time thank you, :) If you look at the permissions associated with a symbolic link, it has universal access. Does this lead to security... (0 Replies)
Discussion started by: linux17
0 Replies

3. Solaris

Please give me answer for these interview questions.

As i'm going to attend my first interview day after tomorrow, What should i need to answer if the interviewer asked me about 1. Tell me about your production environment. 2. What about your team size? 3. Tell me about the most critical situation/issue you have ever faced. Can any... (10 Replies)
Discussion started by: Sesha
10 Replies

4. Shell Programming and Scripting

How to answer the Questions in Perl .

I need to write a script to telnet or ssh a device the execute some commands in device then copy the output in a file, I wrote the script but I faced one issue, when you execute some commands the device asked me a Question, for example : device # copy run tftp device # Source filename ? ... (3 Replies)
Discussion started by: DarkSoul
3 Replies

5. UNIX for Dummies Questions & Answers

can any one please answer these questions

6.nohup cmn is used to Prot execn of pgm frm aborting when hangup s/g is rxd Not hangup modem Disconn a node frm s/m Chng execn prev of pgm .wat is the o/p? Cut -d”” -f3 file1/sort -r Display 3rd col of file 1 in asc order Disp 3rd col of file 1 in desc Not ... (1 Reply)
Discussion started by: techguru
1 Replies

6. UNIX for Dummies Questions & Answers

Unix Experts Answer this INterview Questions please

1, why Boot server should be in a network in jumpstart? 2, what is the different between patch and package? 3, how to list the avilable NIC in solaris9? 4, User complaing system is slow (solaris) what are the steps to check? 5, what is hardware error and software error and Transport Error? in... (5 Replies)
Discussion started by: suresh_krish
5 Replies

7. Shell Programming and Scripting

Answer Terminal Questions With Shell Script?

First off, I am using Mac OS X, with Apple Remote Desktop. I have to install several app's on teachers' laptops which are on several cd's that I have made disk images of. (DMG's) To do rollouts quicker, I have written a script to mount the disk images and running the installers inside each of... (4 Replies)
Discussion started by: The Reepr
4 Replies

8. UNIX for Dummies Questions & Answers

urgent answer these please

Hi, Please explain what does '$*' mean. what does the command cd /~abc do, especially what does '~' mean? cheers. (1 Reply)
Discussion started by: uni_ajay_r
1 Replies

9. UNIX for Dummies Questions & Answers

urgent- please answer these set of questions

Hi, I have a few questions to be answered.Please help me out in this.Its urgent. 1) what does ' $* ' mean, what does it do ? 2) Command to change UNIX Password. 3) What is Daemon processes ? 4) How do u execute a Unix command or process in the background ? 5) What is nohup ? 6) Difference... (6 Replies)
Discussion started by: uni_ajay_r
6 Replies
Login or Register to Ask a Question