MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is your Lecture name in Unix Operator System Subject
A
MOHD SHAHRIL AFANDI BIN ABDUL MAJID
B
MOHD SHAHRIL BIN AFFANDI
C
MOHD SHAHRIL AFFANDI BIN ABDUL MAJID
D
MOHD SHAHRIL AFFANDI BIN MAJID
Explanation: 

Detailed explanation-1: -The system default permission values are 777 ( rwxrwxrwx ) for folders and 666 ( rw-rw-rw-) for files. The default mask for a non-root user is 002, changing the folder permissions to 775 ( rwxrwxr-x ), and file permissions to 664 ( rw-rw-r–).

Detailed explanation-2: -chmod ugo+rwx foldername to give read, write, and execute to everyone.

Detailed explanation-3: -The syntax of the s command is ‘ s/ regexp / replacement / flags ‘. Its basic concept is simple: the s command attempts to match the pattern space against the supplied regular expression regexp; if the match is successful, then that portion of the pattern space which was matched is replaced with replacement .

Detailed explanation-4: -On Linux, by default, when we create new files, they are given rw-rw-r– permissions. The r, w, and x signify the read, write, and execute permissions, respectively.

There is 1 question to complete.