linux interview questions quiz

Post on 14-Jun-2015

4.531 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Linux User Group @ SJSUInterview Questions Quiz

1. Loads of Distros

What's the difference?• Debian• Slackware• RedHat• Gentoo

Linux User Group at San Jose State University 3

2. Tell me the Difference:rm -rf someDir/rmdir someDir/

Linux User Group at San Jose State University 4

3. Project Deadline

• My Boss asked me to do any changes to file before 4:00PM, I did the changes till 4:30PM. Now, How can I make sure that my boss thinks I changed it before 4PM?

• Hint: You got a command for that.

4. Such a big file!!!

• I have a 50 line file.• Print lines 11 to 20.• Such a standard interview question.

Linux User Group at San Jose State University 6

5. What do you think?

• I issue this command• cp {some,same}/thing/here

Linux User Group at San Jose State University 7

contd..

cp /home/roopesh/{docs/,}movies/my_movie.avi

6. Who's got the keys to the room?

• What's the difference between these permissions?

• -rwxr--r--• drwxr-xr-x• Who's got what access?

Linux User Group at San Jose State University 9

7. Copying files

cp \home\roopesh\My file.txt \home\roopesh1\my file.txt• I need to copy my file.txt from roopesh dir to roopesh1 dir.• Does this command work? If not, why?

8. What does this button do?

• what's the difference between ps and top?• ps -u roopesh• top

9. Creating shortcuts

• I got a file and directory, So I want to create a shortcut to that. What do I do in command line?

03/09/10 Linux User Group at San Jose State University

By

Roopesh Vaddepally

top related