I am currently in the /bin directory. I am trying to create a text file of the content of the/bin directory and direct it to be stored in another file within the /root directory. I have entered the command ls -l >/directoryname/filename yet I don't have permissions to run it. I have tried entering sudo before the commmand however this doesn't work either. Does anyone know how I can gain permissions to store this file? It would be very much appreciated, Thanks. 
Storing text files inside root directory
linux;permissions;root