Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
So, what do you need help with? What have you tried? You'll find most members on this forum will help you with the work but will not outright give the answer (myself included). Is there something in particular you're having trouble with?
I'm having trouble with the command line and how to put them in the correct order. like on the first question the to make it an absolute path name it would be /cd/home/etc
Please put up the original question as it was worded (as we work on the different parts). You're correct that /cd/home/etc is an absolute path. However the question was asking how do you *change directory* to the absolute path. Emphasis on the key words. What command in Linux will allow you to change directories? Imagine you had to change directory to /cd/home/etc on the terminal. How would you do that?
1. Use an absolute path to change to the /etc/httpd/conf/ directory.
That was the original question
So since the directory is conf then it should be: /cd/home/etc/httpd.conf
And the relative path would be cd../../etc/httpd.conf
It's pretty much the same thing I said. Change directory are still the key words which can be used for google if in doubt. If the absolute path is /etc/httpd/conf then where do you get /cd/home/etc/httpd.conf? httpd.conf is typically a file, not a directory. You must have spaces in between the commands and the arguments.
So the directory is "/etc/httpd/conf/". What command is used to change directory and how would you use it to change the directory to /etc/httpd/conf/?
since that is the directory to change it to an absolute directory I would change it to /cd/home/etc/httpd/conf separating each command
No you seem to misunderstand the question. Since you're likely used to another OS that has a GUI perhaps I can shed some light on what the question actually means. Take for example you're using Windows Explorer to view a folder. Let's say for example you have Explorer opened to "C:\Users\myuser". You can see the files located inside that directory. Your current working directory is "C:\Users\myuser". Let's say you must change directory to "C:\Program Files\httpd\conf". That means you must browse to the root of the C: drive in Explorer, enter "Program Files", enter httpd, and then enter the conf folder. You have changed the directory from "C:\Users\myuser" to "C:\Program Files\httpd".
So what the question means by changing directory is by changing your current working directory to a new path. Let's pretend on Linux you're currently in "/home/user" but you want to change your current working directory to "/etc/httpd/conf". What command would you use to change the directory to "/etc/httpd/conf"? Hopefully that's clear enough. Hint: in the link fang0654 provided, the command is located under #2 "Navigation".