LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2014, 05:15 PM   #1
bbdynamite
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Rep: Reputation: Disabled
How to access /etc directory?


I'm looking to add a file to the /etc directory, but simply typing cd ~/etc in OSX results in a "No such file or directory" error.

Does anyone know how to access the /etc directory in OSX?
 
Old 06-28-2014, 05:36 PM   #2
bbdynamite
LQ Newbie
 
Registered: Jun 2014
Posts: 12

Original Poster
Rep: Reputation: Disabled
So I tried cd /etc without the ~ and that seemed to lead me to a directory with files like "newsyslog.conf" and "paths.d." Is this the right /etc directory?
 
Old 06-28-2014, 07:44 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,833

Rep: Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842
You would probably have better luck asking a question about an Apple computer on an Apple or OSX forum. The link below should explain the directory structure:

http://osxdaily.com/2007/03/30/mac-o...ure-explained/

cd /etc

should do the job, at least on Linux/Unix systems.
 
Old 06-29-2014, 10:47 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I have no idea how osx works. In a linux file system there is a /etc directory. If you want to add a file to that folder you need root privileges.
jdk
 
  


Reply

Tags
osx


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
Access to Directory mah454 Linux - General 3 12-01-2012 06:20 AM
[SOLVED] access directory outside of home directory? runinguy Linux - Newbie 7 04-16-2010 02:13 AM
How to access the nodes under the /dev directory to access the device? Nishant Desai Programming 2 11-18-2006 05:09 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 06:33 AM
directory access Sc0pE Linux - Newbie 5 08-14-2004 05:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration