A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow


Overview

Command Line Quiz

  • Let’s check our command line knowledge
  • To solve this quiz you have to tell single command (In below comments box) which can create new directory and change its Permission to 600.

Rules

  • No && is allowed
$ mkdir quiz && chmod 600 quiz
  • No ; is allowed
$ mkdir quiz ; chmod 600 quiz

NOTE!: Answer of this quiz will be updated on 10th July 2015.

Answer

$ mkdir -m 600 quiz
$ ls -ld quiz/
drw------- 2 root root 4096 Jul 10 11:36 quiz/




Post Navigation