I know many people get intimidated with a black screen, white text and blinking cursor. No mouse, not knowing where to start…. well, I’m going to spend a bit of time in this article trying to help show you how to survive the command line in linux. For starters, don’t think that linux is a command line only operating system. In some installs, the administrator may not want a gui, but there are some VERY functional and full featured graphical interfaces for linux. For me though, if you know what you want to accomplish, the command line can be a much more efficient way to “get the job done” for many tasks.
Ok, so let’s start…. we’ve either opened up a console window (konsole if you use KDE), or we have a fullscreen console open. IF we’re staring at a full screen console you may need to log in… type your username and press return (no mouse for clicking ok here…) and then type your password (likely it won’t “echo” or print on the screen as you type.) Press ok when you’ve typed that in. So now you have a very spartan looking $ prompt and blinking cursor… now what?
For starters, if you’ve never been at a command prompt before… you might type help and press enter. You’ll likely see a list of commands – when I do that… I see a lot of commands but near the top it says….
Type `help name’ to find out more about the function `name’.
Use `info bash’ to find out more about the shell in general.
Use `man -k’ or `info’ to find out more about commands not in this list.
Ok… so we can see some basic commands and have an idea of how to get a bit more information (help history for instance would give help on the history command.)
There’s also a hint in the above at other ways that we might find help (on a great many programs) The man and info commands. If the text has scrolled down too quickly to read, you might use shift-pageup to “scroll” back and see what you missed. Of course, if you’re using a console window you should be able to use the mouse to scroll.
For the most part when you have a console, the mouse is not used. If you need to move the cursor left or right, try the arrow keys and of course, as we saw for login, the enter key is like pressing the ok button with a mouse….
To log out, simply type exit (and press enter)
Related PostsRelated Posts
- Linux sysadmin toolbox.. This article from enterprise.linux.com is the second on those essential linux command line utilities for system administrators. Covered this time around are netcat, tcpdump, ethereal, nmap, MultiTail, find Xargs, awk and sed, bash and cvs. I've never used MultiTail, but it sounds like it's worth looking at. Nmap is virtually......
- Exporting an active linux desktop with vnc, or vnc remote desktop under linux There are lots of ways to get a remote desktop under linux, remote X, nxserver, vnc. One of the problems though is the most common configuration doesn't let you connect to a running desktop session. There is a vnc component that let's you do this and I'm using it right......
- Google Picasa for Linux One of the big stories out today... Google has released an "early beta" version of Picasa for linux. I first saw the news from the ZDNet Googling Google blog. There are deb, rpm and bin downloads available. The Official Google blog gives a few more details, for instance... this "magic"......
- Buying a Gun Scope When you're buying a gun scope, choosing the biggest and most expensive isn't always going to guarantee you a great product. It's true that you get the quality that you're willing to pay for so choosing the cheapest is probably not going to be the best option. But going right......
- A Sample Dog Training Daily Action Plan [/caption] When it comes to training your dog, we sometimes have to remember that also have to train ourselves. A dog that has a good "pack leader" living with him or her will need to know that you are consistent in the boundaries you set, as well as consistent with......
- Your Wish Is Your Command Is this the highly publicized secret? Is it right what they're announcing about “Your Wish Is Your Command?” A lot of people nowadays are on the lookout for means to gain prosperity and wealth, and to be in a position to lead a good life. However, can a sequence of......
- Using the command line in linux – part 2
- Using the command line in linux – part 3
- Using the command line in linux – part 4
- Simple Backup
- Windows XP Print what’s on the screen or make a screenshot using the … print screen button