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.
Ok, in Mandrake ai was able to open a console and skip around my directory tree. (Confused yet?) In slack though, I get a BASH window and it wont let me do anything but run executables (like pkgtool, for instance)
Here's what I'd like to do: Go to the directory where I have my TGZs located and tar -xzvf them. NOWATIMEEN?
Oh man... If you hosed your /bin directory you wouldn't even get a bash prompt since the shell lives in /bin/sh. Assuming you had a shell open when you hosed it cd would still work since that is actually a script and not a binary. Sooooo...... I don't get it either.
To make you feel better though... I once was trying to remove a local bin directory where I had some school work and shell scripts sitting. For some reason I typed rm -rf /bin instead of rm -rf bin/. I was logged in as root. Damn that sucked.
Sorry.. but I should have asked you this from the beginning. What does the bash tell you when you try to cd, ls, or mkdir?? If you're getting command not found then maybe /bin was hosed. The problem there is that if you can open a prompt /bin is ok since bash lives in /bin. If it does absolutely nothing and gives you a new line like nothing happened then I have no idea.
Your syntax is wrong. Try loggin into bash prompt as your user. You'll automatically be located in /home/loran. From here, if you type ls you'll get what you see in your /home/loran directory like you said you did. At this point, type cd /etc. You'll now be in the /etc directory. If you type ls again, you won't see the same information as before.
ls says "Desktop MPlayer-0.90rc5.tar.bz2 dload.html dload_files"
This is the contents of your /home/loran directory
mkdir says "mkdir: too few arguements Try 'mkdir --help' for more information."
Have you tried typing mkdir --help? If you had, you would've noticed that you have to type the name of the directory you want to "make" after mkdir
When I try to cd Desktop, or cd /Desktop, or anything simi;ar I get "No such file or directory"
I have no idea why--unless the current directory does not have a subdirectory called Desktop, and if you just type "cd /Desktop", it is trying to find a directory called Desktop under the main root (/) partition. You'd have to type out /home/loran/Desktop. After you log in, type: cd / to get to the main root partition, then type ls to see what's in it. From here you can move around the directory tree with cd as you see fit.
ok, I think I might see what has happened...I'm used to seeing the current directory as part of the promt. Kind of tells you where you are, right? Ok, I 'm not getting that in Slack for some reason so it's hard for me to see where I am.
At the "bash-2.05a$" prompt, I enter "ls" (why dir doesn't work, I don't know) and I get what I told you before.
Then I enter cd /etc---no change in the prompt but when I "ls" I get a bunch of new stuff. New directory, right?
I thought the different Distros all acted pretty much the same but this is getting ridiculous!
Alright, let me wrangle with this for a little while.. Look for an update if I'm still lost. Thanks, Y'all.
open a terminal and type this pwd this will tell you where you are.
here are some commands for shell that will help you out:
$ cd / will take you to root files
$ cd .. will take you up one dir in the file tree
$ cd ~/ will take you to your home dir i.e. /home/joe
$ pwd will tell you where in the file tree you are i.e. /var/www/html/images
$ ls will list all unhidden files and folders in the dir you are in
$ ls -a will list all hidden/unhidden files and folders in the dir you are in
$ ./executable will run the executable that you point too in the dir you are in
$ man <command> will give you a manual on the command that you list i.e. man ls or man cd
$ mkdir <dirname> will make a directory(folder) with the name that you specify in place of <dirname>
$ rm <filename> will remove file with the name that you specify in place of <filename> !!!!!WARNING!!!! this is a very dangerous command. be careful not to use $ rm -rf / this will remove everything in the root directory which is everything on your harddrive. there is no recycle bin in linux.
hope this helps some.
not all distros will set up your terminals the same and all terminals are not set up the same. xterm will display differently then eterm which will display differently than kterm which will .... and so on and so on.
there is a way to display where you are in the prompt but that is in the settings. i am not familiar with doing this so you will have to ask someone else.