Unix Commands Interview Questions
Questions Answers Views Company eMail

What command is used to replace the existing string with some other?

TCS,

8 20553

What Command is used to make a directory?

IBM,

4 9754

Give Command that will move a single file called "unix.txt"

IBM,

7 12457

Give command that will make the file "run.sh" executable?

IBM,

10 18523

Give Command that will change the name of a directly from paypal to eBay

Alcatel, IBM,

3 10761

How does a user get the current date, time in UNIX?

IBM,

6 15705

What Command will remove a Directory in UNIX?

IBM,

8 18591

How does the user view the contents of a text file in UNIX?

IBM,

9 12488

What command will bring user back to their home directory in UNIX?

IBM, Wipro,

13 20435

What command a user use to view a long text file one page at a time in UNIX?

IBM,

8 15876

What command would users use to see what file one page at a time in UNIX?

IBM,

7 12754

fork in unix ?

BFL,

4 9928

in unix echo is used for

BFL, BirlaSoft, Patni,

10 25275

The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above

IBM,

4 13453

what is the command to list files in a directory in UNIX?

8 10092


Post New Unix Commands Questions

Un-Answered Questions { Unix Commands }

How do you grep recursively?

593


How do you grep a case insensitive?

566


How do I run a whois command?

631


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1789


Which command is used to delete all files in the current directory and all its sub-directories?

706






What does the “echo” command do?

660


What is the use of egrep command in unix?

652


How can you see the command line history?

613


What does 'mkdir' command do in UNIX?

686


Who command in unix operating system?

683


What is the use of finger command?

625


Name the general commands in using unix os for a beginner?

646


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

788


Which command is used to restrict incoming messages?

619


What is sed awk grep?

632