Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

Answer / wolverine

chmod uo=rw tasks

Is This Answer Correct ?    9 Yes 5 No

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

Answer / hari

chmod ugo filename
ls -l
filename bytes date etc

Is This Answer Correct ?    0 Yes 0 No

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Assume the following files are in the working directory prompt> ls -l tasks -rw-r--r-- 1 alex s..

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

Post New Answer

More Unix Commands Interview Questions

29. How to display top 10 users Who | head -10 | wc –w

4 Answers   TCS,


How do I use grep to find a file?

0 Answers  


How to display a file name which has zero bytes in size.

11 Answers   Polaris,


Give Command that will move a single file called "unix.txt"

7 Answers   IBM,


what is the default permission for /etc/shadow file in UNIX

2 Answers   Wipro,


Explain ‘system calls’ with respect to unix commands?

0 Answers  


What is the general format of unix command syntax?

2 Answers  


how to find the 51th record of a file containing 100 records in unix.

12 Answers   IBM,


What is grep in bash?

0 Answers  


How many unix commands are there?

0 Answers  


How can you change the owner or group of a file?

1 Answers  


how to change a normal file into hidden file

3 Answers  


Categories