LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to see the files in opt directory (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-see-the-files-in-opt-directory-4175540389/)

pon 04-22-2015 02:48 AM

how to see the files in opt directory
 
Hi

i need to see the files in opt directory

when i command /opt/filename/...

it is going without error in terminal but not able to open those files

thanks

pon

RMLinux 04-22-2015 02:59 AM

you change directory first cd /opt.. then ls -al :-)

pon 04-22-2015 03:07 AM

ya i tried. now i want to view and edit the files in opt directory like how we edit files in desktop, home folder.
sub folders inside home is visible directly no need of commands in terminal, but in opt directory why it is not visible


Quote:

linuxsys1@linuxsys1-desktop:~$ cd /opt
linuxsys1@linuxsys1-desktop:/opt$ ls -al
total 12
drwxr-xr-x 3 root root 4096 Apr 21 18:51 .
drwxr-xr-x 23 root root 4096 Apr 10 15:40 ..
drwxrwxr-x 6 root root 4096 Apr 22 12:08 tinyos-2.1.2

now i need to open tinyos-2.1.2 folder in opt

RMLinux 04-22-2015 03:20 AM

type: cd tinyos-2.1.2 because you are not in that directory drwxrwxr-x see the "d" in front meaning directory.

currently you are only in /opt directory.

ondoho 04-22-2015 02:07 PM

...are you sure editing files in /opt is a good idea?
(you will need root privileges for that anyway)
maybe if you told us what your actual problem is, we could help you find better solutions.

veerain 04-22-2015 02:17 PM

Login as root or use su or sudo to get root priviledges. Then access the files to see and edit.


All times are GMT -5. The time now is 09:08 AM.