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.
When I press alt-ctrl-f2 or some other f# combination, I go to a cmd line interface and no longer have the gui. I have been experimenting with commands like rm ls and cat sometimes when i put something like cat in and then follow it with the file, the starting date which says something along the lines of
$ john/johnnyhome/... and so on
disappears and I can no longer input any more commands. How do i make it reappear?
what i means is if i press alt-ctrl-f2 and then type a certain command e.g. cat *fileName* it made the cmd line disappear and it wont reappear. basically in the cmd line interface, if i press enter i get a blank line and i dont get the $ sign followed by the pathway.
1. If you type "cat /etc/hosts", you should see the contents of your /etc/hosts" file (a text file), and you should get your prompt back immediately.
2. If you type "cat" and hit enter (with no arguments), then the "cat" command will appear to "hang". What it's actually doing is waiting for input to be redirected to it from "stdin" (Unix-speak for "standard input", typically you typing something at the keyboard). <Ctl-C> (interrupt program) is one way to break out. <Ctl-D> (signal "end-of-input") is another, more benign way.
3. It sounds like whatever you typed after "cat", caused it to behave like "cat" (with no arguments). I encourage you to try the "cat /etc/hosts" experiment, and compare it with your first experience. Then try "cat" with any other convenient text (for example, ".profile", in your home directory).
Another thing to watch is only cat text type files, not binary executables. The way to check is
which will tell you if its a text type file. Trying to cat a binary will screw up the display.
Also, instead of using ctl-alt-f#, open up a cmd terminal (xterm/gnome terminal).
You can have lots open at the same time and still see the GUI.