How to open files in MC as root without typing in their names?
Hello people!
So let's say I entered some dir in MC as a regular user and there is a file with very long name which is not convenient to spell and I want to edit it with nano as root. In this directory I type in a command "sudo nano [name]" and autocompletion doesn't work because the TAB key is for another purpose in MC. Can I insert a name of selected file without typing it in MC? |
Select the file and press Alt-Enter.
|
I am not sure but this may help you lets suppose you have 3 long file name in the directory
1. trryskshsjdbfhsbhjbshjbgsjhbjshbgjhbsjgsgb.ext 2. trstyxbvjhbxkjvxjhbxhjbjxhbjxhjhbxvjhbjxhbjsgbsjhgbjshbgj.ext2 3. trysjhbjhsbgjhbsghjbsjbgjsbgjhbsjghbjsgjsjhbhjbsfhjbghjbsghjbgjshgbhjsbghjbjsghbghjbsjg.ext3 and you have to edit 3rd file then write command like this Quote:
Quote:
|
Thanks rahulkya, first answer did the job. :)
|
All times are GMT -5. The time now is 03:55 PM. |