Unix interview questions

Hi Experts,

 I have a list of interview questions whih I need answer from you. Please help me on this.

1) Unix command to copy the files with name containing test from /export/home to /tmp/dir2
2) If I need to run large number of jobs in the night what utility I will use
3)How to find the available space in a particular directory
4)what is soft link and hard link
5)Command to copy a file from directory /export/home/users in machine1 to /tmp/dir/ in machine2.

Thanks.
nmretdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Prashant SabnekarAVPCommented:
Answer to Q5>
scp -r /export/home/users/filename IPAddress_of_Mac2:/tmp/dir

Eg:

scp -r /export/home/users/filename 10.165.212.220:/tmp/dir

I will soon give the rest of the answers, actually at this instance I unable to remember them.

Regards
Prashant Sabnekar
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ahoffmannCommented:
how about reading a book?
1) cp
2) whatever you feel comfortable with (cron at scripts:)
3) depends on your filesystem capabilities, if there is no quota the question is useless
4) soft link is a special inode with reference to another resource/target, hard link just increments the use counter in an inode and adds an additional name for it
5) rcp, scp, ftp, wget, curl, and many many more ...
0
yuzhCommented:
It it is a entry level position, you can tell the interview panel what you know about
Unix, and you wish to learn (faster learner?).

If you gave a *nix (linux, Unix) system, login to the system and do:

man cp
man tar
man df
man ln
man crontab
man cron

It will give you the answers for the questions.

If it is not the entry level position, you should skip the interview for this time.
stay at home and start to learn *nix. Install Linux/Unix in your PC, play with the system. please have a look at the links in:

http:Q_20626712.html
http:Q_20665909.html
http:Q_20684016.html

Good luck !




0
Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Prashant SabnekarAVPCommented:
Answer to Q1>>>
cp /export/home/test* /tmp/dir2/

Q3>>>
How to find the available space in a directory.

Look directory is not a drive to have something like free space or available space, It will have size, that you can find out by typing ll command, or programatically by using fcntl.

Good Luck

0
Vinit KainCommented:
you can find space used by a directory by

du -ks /your_directory

or can find the space available on filesystem

df -k .
0
ahoffmannCommented:
> you can find space used by a directory by
.. but the question was "available space"
The interviewer knows why :-))
0
Vinit KainCommented:
>> .. but the question was "available space"
The interviewer knows why :-))


I Know,

But if this question is asked to me in any interview, I will tell the same what I posted.

Vinit
0
TintinCommented:
Vinit

You said:

>you can find space used by a directory by

>du -ks /your_directory

That's "incorrect" if there are sub directories, but then again it's an poorly worded question.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.