Monday, June 16, 2014

[Solved] Linux Commands Challenge : 005

Fancy your Linux skills ? Take this challenge and answer these simple 5 questions on Linux commands.

Update : Added Solutions



  1. What does the command units do ?
      • It is a program to convert quantities expressed in one scale to another. Ex : meters to miles

  2. What happens if I apply the sticky bit to a directory ?
      • You make the files in that directory “sticky”. In the sense, users cannot delete the files in that directory. Only the root user can delete the files. Ex : /tmp directory

  3. How do you print the reverse of your username on Linux ?
      • whoami | rev

  4. How do you find out the most commonly used command by a given user ?
      • hash | sort -r | head

  5. What is the difference in the output of these two commands : echo * and ls -R ?
      • echo * : Lists all the files in the current directory and all its sub directories ls -R : Lists all the files and folders in the current directory and all its sub directories

No comments:

Post a Comment