ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Operating Systems  >>  Unix  >>  Unix Commands
 
 


 

 
 Unix Commands interview questions  Unix Commands Interview Questions
 Unix Threads interview questions  Unix Threads Interview Questions
 Unix IPC interview questions  Unix IPC Interview Questions
 Unix Socket Programming interview questions  Unix Socket Programming Interview Questions
 Unix System Calls interview questions  Unix System Calls Interview Questions
 Unix General interview questions  Unix General Interview Questions
 Unix AllOther interview questions  Unix AllOther Interview Questions
Question
how will u execute a file in unix
 Question Submitted By :: Shyam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how will u execute a file in unix
Answer
# 1
Depending on the type of shell you can execute a file in 
either of the ways
1) ksh <filename>
2) sh <filename>
If the file already possess execute bit set on it, then you 
can directly execute the file with its name alone
1) <filename>
 
Is This Answer Correct ?    6 Yes 0 No
Narendrasairam
 
  Re: how will u execute a file in unix
Answer
# 2
if the file doesn't have executable permissions than assign 
the same as chmod 755 <filename>. after that execute the 
same by using command ./<filename>
 
Is This Answer Correct ?    9 Yes 0 No
Ravneet
 
 
 
  Re: how will u execute a file in unix
Answer
# 3
Yes the above answer is absolutely apt.
 
Is This Answer Correct ?    1 Yes 1 No
Visu_kvg
[Jetking]
 
  Re: how will u execute a file in unix
Answer
# 4
chmod - R 755 foldername
 
Is This Answer Correct ?    1 Yes 2 No
Bhaskar
 
  Re: how will u execute a file in unix
Answer
# 5
sudo chmod +x filename
./filename
 
Is This Answer Correct ?    4 Yes 0 No
Eugene
 
  Re: how will u execute a file in unix
Answer
# 6
There are lot of ways by which u can execute a file in Unix.

1. ./<filename>

2. <filename> #only if the permissions are in place for the 
user

3. sh <filename> #uses bash shell

4. nohup <filename> #the process doesn't get killed even on 
reboot

5. Batch <filename>

6. at <time> <filename> #to schedule the job 

7. U can also autorun it by making an entry into the cron
 
Is This Answer Correct ?    0 Yes 0 No
Lokesh
 

 
 
 
Other Unix Commands Interview Questions
 
  Question Asked @ Answers
 
Give the command to display space usage on the UNIX file system.  14
How do you find path of a directory? Give its syntax.  7
How do you create a file in UNIX QA24
Is there any command in Unix, other than:ls, to list the files in a directory? The answer will be highly appreciated... CGI20
who to change the duplex setting of network interface in command line  1
Through which command will redirect output to bOth screen and files at the same time?  2
Explain iostat, vmstat and netstat.  2
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?  3
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.  10
How does the user view the contents of a text file in UNIX? IBM4
What is the difference between AWK and SED commands? Plz give example and explain... RBS1
distinguish between physical addresses and logical address? Infosys4
what does a process mean? Infosys6
How to identify whether a file is normal file or directory?  3
How to delete a directory containing files and folders?  3
what is the significance of "su" command?  3
In Unix file permissions what does the second field denotes?  1
What is FIND, GREP and SED ? Could you please give me the difference between all the three? Where we use this commnands? Deloitte4
What is use of sed command? BitWise9
distinguish between multi-tasking,multi-user,multi- processing and time sharing? Infosys4
 
For more Unix Commands Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com