Research questions


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Research questions
# 1  
Old 06-04-2014
Research questions

Hi there, please could you assist me. I have no knowledge at all about Unix and I have applied for a job and they have given me a test and said that I can obtain the answers in any kind of way. There are 3 questions that I need answers for. I have tried researching the answers to these questions but cannot find them. There were a few other questions which I have answered by doing research but no luck with these. These are the 3 questions below.

1.What does the following command do
Code:
"FILE[2]=file1.txt;
 CNTR=2;
 if [ ! -f "${FILE[$CNTR]}" ];
 then 
    echo yes; 
 else 
    echo no;
 fi"

2. What does the following command do
Code:
cat file1.txt | sed '1d;$d'

3. Please supply the Sybase sql command used to restore a database called test.dmp which was
dumped with compression ratio 3



Moderator's Comments:
Mod Comment Please use code tags next time for your code and data. Thanks

Last edited by vbe; 06-04-2014 at 08:50 AM.. Reason: code tags, restructured code...
# 2  
Old 06-04-2014
So with regard to these questions, what have you worked out so far? What are you getting stuck with?
# 3  
Old 06-04-2014
Not knowing unix is one thing, applying for a IT job having a single idea of what IT basic programming is is another...

2) someone from WIN* cannot guess so I would say catenate file1.txt and output only first and last line...
But if you are asked to explain, what will you answer?
1) Have you tried to figure out? with a litle programming knowledge you should be able to guess right...
# 4  
Old 06-04-2014
I am stuck really. I have no clue what you are asking me. I have been asked questions in this test in various IT fields like OS, Networking, DatabaseS, SQL, Web Services and ITIL. I have managed to answer all those questions in that areas and I am only stuck with these 3. I have answered other Unix questions in this test but I am in a dead end with these 3. I guess the job I am applying for is testing to see if I can at least answer the questions because my cv clearly doesn't have Unix experience on it.
# 5  
Old 06-04-2014
Well youve got the answer of 2)
1) is not not truly unix specific if you try to understand e.g. CNTR=2 is easy to guess the variable CNTR gets value 2... and If else fi is not unix specific... So you should be able to guess...
3) sorry Im no Sybase admin
This User Gave Thanks to vbe For This Post:
# 6  
Old 06-04-2014
Thank you....I am surprised myself about these questions, I am literally a dummy with Unix. They did say I can use the internet or text books what ever means. I will keep on trying I have a few days to still try and answer.
# 7  
Old 06-04-2014
Poste here what you have figured out and we will correct...
An extra clue $VAR will give the value of the variable VAR so now it really should not be difficult...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

NAS Research

Good Afternoon, Are most NASs compatible with Solaris/RedHat? Specifically, I'm looking at Western Digital ones but none of them say they are - I like My Cloud Pro Series PR4100 My Cloud Pro Series PR4100 – Network Attached Storage | Western Digital (WD) (3 Replies)
Discussion started by: Stellaman1977
3 Replies

2. UNIX for Advanced & Expert Users

Research ID - in Crontab

Hi, I have a unix script which runs a process (informatica workflow). To trigger this workflow an entry is made into the crontab and it is scheduled to run. Issue: The crontab entry is commented out. But the process is running in the unix box and it was scheduled immediately. There is someone... (6 Replies)
Discussion started by: diva_thilak
6 Replies

3. UNIX for Dummies Questions & Answers

Research an expression in VI editor

Hi, how to look for an expression like : or Client ChkAeStatus4 service in VI ? For a word , of cours : /word (2 Replies)
Discussion started by: big123456
2 Replies

4. Homework & Coursework Questions

Print questions from a questions folder in a sequential order

1.) I am to write scripts that will be phasetest folder in the home directory. 2.) The folder should have a set-up,phase and display files I have written a small script which i used to check for the existing users and their password. What I need help with: I have a set of questions in a... (19 Replies)
Discussion started by: moraks007
19 Replies

5. UNIX for Dummies Questions & Answers

research proposal for PG

hi friends i have just completed my graduation and applied for Post graduation i have to submit a research proposal of OS in the interview i m a beginner & only read galvin & silbershcatz book on operating systems can anyone help me in that ... thanks in advance (3 Replies)
Discussion started by: iet.manish
3 Replies

6. Windows & DOS: Issues & Discussions

Research for College

I am researching the reasons why Unix / Linux is the chosen operating system versus Windows. I have had difficutly narrowing down resources. I am wondering if anyone has any favorite sources that they would care to share. Thanks Dan (2 Replies)
Discussion started by: isenhart
2 Replies

7. UNIX for Dummies Questions & Answers

Research paper

I am doing a "research" paper for school and i'm having a hard time finding accurate information. I am supposed to choose three differant versions of unix, give a brief explination of each, tell why there each differant from each other. I have found a ton of web sites but the information is so vast... (1 Reply)
Discussion started by: pantsusan
1 Replies

8. Forum Support Area for Unregistered Users & Account Problems

Research Project

Hi, I need you help with my research project that attempts to determine the link between users and manufacturers of IT Products such as Unix. This is part of an MBA program that I'm currently pursuing. My challenge is that I cannot possibly find out how I can send my research... (1 Reply)
Discussion started by: Tdludlu
1 Replies
Login or Register to Ask a Question