Assume the following files are in the working directory
prompt> ls -l tasks
-rw-r--r-- 1 alex student 1423 Feb 21 14:01 tasks
What command can Alex use to give everyone permission to
write to the file? What will the ls -l
command display if he does so?
Answers were Sorted based on User's Feedback
Answer / div
chmod 666 tasks will give all users (owner, group and
others) the read-write permission.
r = 4
w = 2
x = 1
therefore rw = 4+2 =6
ls -l : lists a large amount of information of all non-
hidden files and directories in the current working
directory. eg (permissions, owners, size, and when last
modified.)
Is This Answer Correct ? | 15 Yes | 3 No |
Answer / sivanantham
chmod 666 tasks
-rw-rw-rw- 1 alex student 1423 Feb 21 14:01 tasks
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / harika janga
chmod go+w tasks
-rw-rw-rw- 1 alex student 1423 feb 21 14:01 tasks
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / piyush
chmod a+2 <filename>
This gives permission to all to write the file.
If you enter command as ls -l <filename>, It will display
-rw-rw--rw--
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / subhojit saha
chmod 666 tasks
-rw-rw-rw- 1 alex student 1423 Feb 21 14:01 tasks
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kapil
chmod ugo+w tasks (press "enter key")
after doing this..
prompt> ls -l tasks
result will show as.
-rw-rw-rw-1 alex student 1423 Feb 21 14:01 tasks
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kiruthiga.s
666- is a permission
output will be -rw-rw-rw- alex student 1423 Feb 21 14:01
tasks
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / vimshak
Make other to worl readable ie;
chmod o+w tasks
-rw-r--r-w 1 alex student 1423 Feb 21 14:01 tasks
Is This Answer Correct ? | 0 Yes | 5 No |
why unix commands can be divided into internal and external commands?
How does pipe () work?
Will rm -r* removes hidden files?
What are the general commands in using unix os for a beginner?
distinguish between user mode and kernel mode?
What are the differences among a system call, a library function, and a unix command?
which script will invoke first ,when /etc/init.d starts
Which Command is Used for temprary switch User?
How to add content of one file into another file at the beginning
What do you mean by zambie process?
If JFS file system is 100% full how we can increase the file system ?
If we want to see first 35 lines of a file which command we have to use?