Showing posts with label Linux/Unix Q/A. Show all posts
Showing posts with label Linux/Unix Q/A. Show all posts

Basic sed tricks

on 12:16 PM


  1. What is sed? - sed is stream editor, a Unix tool for working with streams of text data. See the awful truth about sed.
  2. How do you substitute strings with sed? - Use ’s/old/new’ command, so sed ’s/hello/goodbye/’ would substitute the occurrence of the word hello to goodbye.
  3. How do you inject text with sed? - & in the substitution string defines the pattern found in the search string. As an example, here’s us trying to find a word ‘hello’ and replacing it with ‘hello and how are you’:
         echo ‘hello there’ | sed ’s/^hello/& and how are you/’

UNIX Interview Questions Lists

on 1:03 PM

Are you a developer? Need to update your software development knowledge or need to prepare for a job interview? Check out this collection of Unix Interview Questions .
  • How are devices represented in UNIX?
  • What is 'inode'?
  • Brief about the directory representation in UNIX
  • What are the Unix system calls for I/O?
  • How do you change File Access Permissions?
  • What are links and symbolic links in UNIX file system?

Linux network administrator questions

on 7:32 AM

A pretty funny story - someone was offered a test of basic Linux questions for a junior network administrator position, and figured out that the best way to impress the future employer with good answers is to post the list on UbuntuForums. Good idea, right? That’s where all the Linux experts hang out. Unfortunately, that’s where the employer hung out as well:

It didn’t seem to me that I was asking too much for people to use mailing lists, forums, IRC whatever to compile the answers themselves. I actually expected to see some questions show up on forums but I didn’t expect someone to paste the entire thing and expect the forum users to do all the work that would qualify you for an interview. I think at this point you could save us all some time and not turn the answers back in, I already have the information I need on your answers.
Anyway, the list has been made public, so enjoy:
  1. Give an example of set of shell commands that will give you the number of files in a directory
  2. How do you tell what process has a TCP port open in Linux
  3. On a Red Hat Linux Variant how do you control whether a service starts when the system boots
  4. How do you tell the amount of free disk space left on a volume