saving . . . saved permission denied has been deleted. permission denied has been hidden .
permission denied
I have change directory by <span style="background-color: rgb(0, 0, 0);"><font color="#ffffff">cd /usr/lib</font></span>. Then I have display all the files in this directory by <span style="background-color: rgb(0, 0, 0);"><font color="#ffffff">ls -all</font></span>. Now I want to save the result in a file. So I enter the command: <font color="#ffffff" style="background-color: rgb(0, 0, 0);">ls -all > filleinfo</font>. But it shows me that bash: fileinfo: Permission denied. If  I do the same in home directory, then it work fine, but when I change the directory it not work

Linux File-System 05-06 min 0-10 sec 04-12-20, 12:47 a.m.


Hello Sanniddhachakrabarti,

It could be because you have typed 
ls -all > filleinfo 
instead of fileinfo
10-03-21, 2:19 p.m. nancy

try this command " ls -all /usr/lib > fileinfo " . it will resolve you issue of Permission denied.
17-03-21, 5:39 p.m. abhivora120801

Log-in to answer to this question.