Home / Programming MCQs / Linux MCQs / Question
S
Q. The -rwxr-xr-t permissions represented by the following octal value.
The sticky bit ($ chmod +t file-name) was introduced for use with executables to allow to an operating system to keep the program’s text segment in swap space after the process has finished. It was a performance feature designed to speed up program execution. The sticky bit is most commonly used on directories where it allows files or directories to be moved or deleted only by the owner of that object, the owner of the directory or the root superuser. To define the sticky bit on a file, the octal value is 1000 and the symbolic value is “t”. String notation: $ chmod o+t file1.txt Numeric notation: $ chmod 1755 file1.txt The sticky bit has no effect if other does not have execution permissions. The sticky bit is represented with a lowercase “t” in the output of ls. In cases where it has no effect, it is represented by a capital “T”. $ ls -l file1 -rwxr-xr-t 1 user1 user1 0 2018-10-29 21:41 file1
You must be Logged in to update hint/solution
Q. What script is run for setting bash global defaults for all users?
Q. Similar to read and write system calls
Q. Which file contains the available shells for the system?
Q. Which command is used to assign read-write permission to the file owner?
Q. who cut –d ” ” -f1 what is the ouput if the who command displays like this user1 tty 0 1234
Q. What type of hypervisor creates multiple virtual machines on an existing operating system ?
Q. Which service cannot be used with TCP wrappers?
Q. If a file has the following permissions 764 then _____?
Q. Which file contains the system-wide variables on a system with a bash shell?
Q. Which command is used to view quota information for a specific user?
Discusssion
Login to discuss.