Link to home
Start Free TrialLog in
Avatar of nmretd
nmretd

asked on

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.
ASKER CERTIFIED SOLUTION
Avatar of Prashant Sabnekar
Prashant Sabnekar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> you can find space used by a directory by
.. but the question was "available space"
The interviewer knows why :-))
>> .. 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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial