LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-22-2015, 02:48 AM   #1
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Smile 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
 
Old 04-22-2015, 02:59 AM   #2
RMLinux
Member
 
Registered: Jul 2006
Posts: 260

Rep: Reputation: 37
you change directory first cd /opt.. then ls -al :-)
 
Old 04-22-2015, 03:07 AM   #3
pon
Member
 
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


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
 
Old 04-22-2015, 03:20 AM   #4
RMLinux
Member
 
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, 02:07 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038Reputation: 6038
...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, 02:17 PM   #6
veerain
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.
 
  


Reply


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 08:13 PM
unable to create directory under /opt suddublr Linux - Newbie 7 12-02-2011 10: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 04:00 PM
Use of the /opt directory - Suse 9.2 swamprat Linux - Software 2 02-17-2006 03:42 PM
regarding /opt directory... zameer_india Linux - Newbie 2 01-19-2005 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:41 PM.

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