Basic shell scripting interview questions

ADD TO FAVORITES
Basic shell scripting interview questions
Basic shell scripting interview questions
1. How do you find out the current directory you are in?
        pwd

2. How do you find out what's your shell?
        echo $SHELL

3. How do you list currently running process?
        ps

4. How do you stop a process?
        kill pid

5. How do you stop all the processes, except the shell window?
        kill 0

Next 6-10