Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-22-2015, 03:48 AM   #1
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Smile how to see the files in opt directory


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


Old 04-22-2015, 03:59 AM   #2
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
you change directory first cd /opt.. then ls -al :-)
Old 04-22-2015, 04:07 AM   #3
Registered: Aug 2014
Posts: 77

Original Poster
Rep: Reputation: Disabled
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

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
Old 04-22-2015, 04:20 AM   #4
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
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.
Old 04-22-2015, 03:07 PM   #5
Senior Member
Registered: Dec 2013
Posts: 4,360

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
...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.
Old 04-22-2015, 03:17 PM   #6
Senior Member
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] /opt directory mintvx Linux - Newbie 6 10-02-2014 09:13 PM
unable to create directory under /opt suddublr Linux - Newbie 7 12-02-2011 11:11 AM
Newbie as they come and how do I get an ansic directory to appear in /opt hpux2Linux Linux - Newbie 6 07-14-2009 05:00 PM
Use of the /opt directory - Suse 9.2 swamprat Linux - Software 2 02-17-2006 04:42 PM
regarding /opt directory... zameer_india Linux - Newbie 2 01-19-2005 01:48 AM

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration