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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Very new to linux so forgive the stupid questions, but im going through linux with this step by step guide to learning linux and the explaination for pushd & popd is about 1 sentence long and poorly written so could someone give me an idea from a linux idiot perspective as to what this does??
The pushd and popd commands push and pop directories from the directory stack. They are useful because they let you "save your place" in the file system. For example, if you are in /some/big/long/path and you pushd /somewhere/else you will change to /somewhere/else and your original location is pushed onto the stack. When you do popd, you will change back to /some/big/long/path without having to re-type that big long path.
Sort of, but it's a stack ... so you can store more than just one item on it for instance, you can do:
Code:
cd /a
pushd /b # /a is pushed onto the stack
pushd /c # /b is pushed onto the stack, which now has [/b,/a]
pushd /d # /c is pushed, stack now has [/c,/b,/a]
popd # changes you to /c, stack now has [/b,/a]
popd # changes you to /b, stack is now [/a]
popd # changes you to /a
I should also mention you can use the dirs command to see the list of directories on the stack. You can use popd +n to go to (and pop) the nth entry from the directory stack (counting from the left -- popd -n counts from the right). Pushd and popd are bash built-in commands so if you look at man bash you can read all the documentation on them.
As for good basic programs, it really depends. What do you want to use the system for. Consumer desktop? Scientific workstation? Server of some sort?
Im trying to learn how to run a webserver without control panels.. Ive been using whm/cpanel for sometime, but i want to start learning more about running the web server, apache, running vps and such. There are great control panels that do it all for you, but i dont want to depend on them.
I was told and from i can tell its true, that centos is common on webservers. Also its the one my providor uses. So im setting this old pc up as a centos machine right next to my pc and im going to practice logging in and stuff. Whenever i update or move files in cpanel on my web server im going to try and teach myself on my home pc how to do it without a GUI..
OK, well you'll want to make sure you have Apache installed. If it's not installed, you can install it through yum. To turn it on do:
Code:
service httpd start
and make sure you can connect to it from another machine (if you have a firewall on, you may have to make sure that port 80 is open). The Apache configuration files are in /etc/httpd. I suggest you read the Apache documentation for information about all the thing you can do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.