Unix command to list all the filenames that others can read and write.
Answers
Answered by
0
Answer :- Try using below. Take information for all files within a folder and check for the read write status to filter the data based on permission.
$> cd dir
$> count="$(ls -l | cut -d ' ' -f1 | cut -c 2-4 | grep rw | wc -l | sed 's/ //g')"
Answered by
0
'Is' is the Unix command given to list all the filenames that others can read and write.
Just type 'Is' and you will get a list of all the files present in the directory.
However, it can show 'visible' files only whose names does not start with a period.
If you type 'Is -a', it will show all the files, including the invisible ones whose names start with a period.
Similar questions