Preview

Linux Interview Questions

Powerful Essays
Open Document
Open Document
10428 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Linux Interview Questions
Linux admin interview questions

1. How do you take a single line of input from the user in a shell script? 2. Write a script to convert all DOS style backslashes to UNIX style slashes in a list of files. 3. Write a regular expression (or sed script) to replace all occurrences of the letter ‘f’, followed by any number of characters, followed by the letter ‘a’, followed by one or more numeric characters, followed by the letter ‘n’, and replace what’s found with the string “UNIX”. 4. Write a script to list all the differences between two directories. 5. Write a program in any language you choose, to reverse a file. 6. What are the fields of the password file? 7. What does a plus at the beginning of a line in the password file signify? 8. Using the man pages, find the correct ioctl to send console output to an arbitrary pty. 9. What is an MX record? 10. What is the prom command on a Sun that shows the SCSI devices? 11. What is the factory default SCSI target for /dev/sd0? 12. Where is that value controlled? 13. What happens to a child process that dies and has no parent process to wait for it and what’s bad about this? 14. What’s wrong with sendmail? What would you fix? 15. What command do you run to check file system consistency? 16. What’s wrong with running shutdown on a network? 17. What can be wrong with setuid scripts? 18. What value does spawn return? 19. Write a script to send mail from three other machines on the network to root at the machine you’re on. Use a ‘here doc’, but include in the mail message the name of the machine the mail is sent from and the disk utilization statistics on each machine? 20. Why can’t root just cd to someone’s home directory and run a program called a.out sitting there by typing “a.out”, and why is this good? 21. What is the difference between UDP and TCP? 22. What is DNS? 23. What does nslookup do? 24. How do you create a swapfile? 25. How would

You May Also Find These Documents Helpful

  • Satisfactory Essays

    7. How is the passwd file used, and what fields make up its content? Explain.…

    • 368 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Nt1310 Unit 4

    • 3614 Words
    • 15 Pages

    13. If the following program (myprog) is run from the command line as myprog monday tuesday wednesday thursday? What would be the output?…

    • 3614 Words
    • 15 Pages
    Better Essays
  • Satisfactory Essays

    Nt2670 Final Exam Paper

    • 408 Words
    • 2 Pages

    8) Which of the following is not a valid cmdlet structure? C – Email – Send…

    • 408 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1310 Unit 3 Homework

    • 1253 Words
    • 5 Pages

    tem. Each of these numbers identifies the command running in the background. It’s useful to know what jobs the program has completed and which ones are still running. The utility to use to run more than one command is “&”.…

    • 1253 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    NT1430 Lab2 Joy Brewer

    • 989 Words
    • 4 Pages

    6. What does the command pwd do? pwd prints the name of the current/working directory…

    • 989 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    Unit 3 network discovery

    • 1031 Words
    • 5 Pages

    Give commands for each of the following, using wildcards to express filenames with as few characters as possible.…

    • 1031 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 1 Study Guide

    • 846 Words
    • 4 Pages

    27. In a command line, what is the purpose of the ? in a filename?…

    • 846 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    * Provide a set of values that will test the normal operation of this program segment. Defend your choices.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Powerful Essays

    Hw3 7

    • 1263 Words
    • 5 Pages

    d. Send a list of files in the working directory to the printer, sorted by size.…

    • 1263 Words
    • 5 Pages
    Powerful Essays
  • Satisfactory Essays

    It 250 Homework 4

    • 769 Words
    • 4 Pages

    1. What does the shell ordinarily do while a command is executing? What should you do if you do not want to wait for a command to finish before running another command?…

    • 769 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Rhet 201 assignment 2

    • 3015 Words
    • 14 Pages

    /Type/FontDescriptor/FontName/Helvetica/Flags 32/ItalicAngle 0/Ascent 905/Descent -210/CapHeight 728/AvgWidth 441/MaxWidth 2665/FontWeight 400/XHeight 250/Leading 33/StemV 44/FontBBox -665 -210 2000 728…

    • 3015 Words
    • 14 Pages
    Satisfactory Essays
  • Satisfactory Essays

    11. To show what an attacker would have access to if they were in the system.…

    • 263 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ChDir (P22) ChDrive (P22) MkDir (P22) RmDir Function (P23) FileDateTime (P23) FileCopy (P24) Cut, Copy & Pasting Text (P24) SetAttr (P25) FreeFile function (P25) Close Statement (P27) EOF Function (P27) Print Function (P28)…

    • 9138 Words
    • 37 Pages
    Satisfactory Essays
  • Good Essays

    Java Progamming

    • 7830 Words
    • 32 Pages

    Exercise CheckPassFail (if-else): Write a program called CheckPassFail which prints "PASS" if the int variable "mark" is more than or equal to 50; or prints "FAIL" otherwise.…

    • 7830 Words
    • 32 Pages
    Good Essays
  • Better Essays

    Interview Ques

    • 24158 Words
    • 97 Pages

    How do you reverse a singly linked list? How do you reverse a doubly linked list? Write a C program to do the same. Updated! Given only a pointer to a node to be deleted in a singly linked list, how do you delete it? Updated! How do you sort a linked list? Write a C program to sort a linked list. Updated! How to declare a structure of a linked list? Write a C program to implement a Generic Linked List. How do you reverse a linked list without using any C pointers? Updated! How would you detect a loop in a linked list? Write a C program to detect a loop in a linked list. How do you find the middle of a linked list? Write a C program to return the middle of a linked list If you are using C language to implement the heterogeneous linked list, what pointer type will you use? How to compare two linked lists? Write a C program to compare two linked lists. How to create a copy of a linked list? Write a C program to create a copy of a linked list. Write a C program to free the nodes of a linked list Updated! Can we do a Binary search on a linked list? Write a C program to return the nth node from the end of a linked list. New! How would you find out if one of the pointers in a linked list is corrupted or not? New!…

    • 24158 Words
    • 97 Pages
    Better Essays