Archive for December, 2009

How To Save File To Desktop Using Linux Commands.?

Monday, December 28th, 2009

I am a beginner to Linux commands. I use SSH to connect to a Linux server. What command can I use to save a text file on the server to my desktop? Example?

Please Suggest Me A Software That I Can Install In Windows Xp Inorder To Learn Linux Commands?

Thursday, December 24th, 2009

I want to learn linux commands on windows platform (without the requirement of linux OS). I had a software but i forgot the name, can please help getting that similar kind of functionality.
Thank you all for your kind suggestions and Hints.

The Top Ten Reasons for Learning Linux, Number 8, More Control Over the Computer

Sunday, December 20th, 2009

The Top Ten Concepts for Linux Beginners – Number 7, Shells and Utilities

Wednesday, December 16th, 2009

A shell is the command interpreter program that serves as an interface between some users and the operating system itself. We say some users because most users rely on the graphical user interface. The Windows shell is the DOS command line interface accessed by clicking on Run and then entering the cmd command. The Windows graphical user interface is Explorer. This article describes the Damn Small Linux shell interface and several utilities, useful programs that may be launched from the shell. A subsequent article will describe the corresponding graphical user interface.
Why would anyone want to bother with a shell when the prettier, easier-to-learn and easier-to-use graphical interface is available? The answer is: It depends who you are and what you want to do. For system administrators or their associates it’s often much less cumbersome to use the shell rather than the graphical user interface. While Damn Small Linux commands may be quite arcane, they can be very powerful. And efficient. The Linux tools for performing administrative and other technical tasks admittedly take time to learn and master. But it does the job and does it well. In all fairness, many Windows systems administrators often apply command-line utilities. But they don’t have a powerful shell to help them do their work.
Historically Unix used the Bourne shell, the C shell based on the C programming language, and the Korn shell. Linux’s most widely used shell is Bash, also spelled BASH, the (Bourne-Again Shell). Damn Small Linux offers many shells but most people go with Bash both to communicate interactively with the operating system and to write programs known as shell scripts. If you program in Linux no matter which programming language you use you should learn some Bash specifics.
Utilities enable you to handle some very sophisticated processing. You can think of them as commands or as prewritten programs. Unix-Linux people often send the output of one command or utility to another command or utility for further processing. For example, the ps command displays active processes. It tends to generate voluminous output, especially in a busy system. Let’s say that you are interested only in the processes associated with a given terminal. You send (the technical term is pipe, expressed by the | character) the output of the ps command to the grep utility which looks for patterns within the input. You code a single line, multipart command to obtain the list of processes associated with that particular terminal. Unix and Linux are well known for elegant solutions. In contrast the Windows solution to this information need is much more clumsy.
The grep utility has many other uses including validating e-mail addresses. Let’s say that your web site asks potential subscribers to furnish their e-mail accounts when signing up for a newsletter. A sophisticated but relatively short statement coded in grep could validate e-mail accounts.
Other Damn Small Linux text processing utilities include the related egrep and fgrep commands, mawk a pattern scanning and text processing language, sed an editor that handles large files, and diff a utility that compares files. DSL provides utilities that compress and archive files, and a wide range of other utilities. If you need them, these Linux utilities can be quite useful and time-saving.
Our next subject is Linux programming support.

Top Ten Concepts for Linux Beginners – Number 1, Files

Saturday, December 12th, 2009

Of course if you are used to Microsoft Windows you are familiar with the concept of files. This familiarity means you won’t have to start from zero to learn about Linux files. However, you will have to relearn several concepts and techniques to work with files in the Linux environment, whether using Damn Small Linux or other versions. You can do several great things with Linux files that you can’t do easily or at all under Windows. This could be just one more reason to switch from Windows to Linux.

Files have unique names. This rule is not as simple as it may seem. There is no conflict between a hard disk file named pay12june and a file named pay12june on your removable USB flash drive. In fact, be sure to backup all your important files. Don’t worry if your hard drive file is erased or becomes corrupted and illegible, simply access the one on your flash drive. You could also have two files named pay12june on your hard drive in different directories. Directories, collections of directories and files, will be discussed in the next article in this series.

Linux distinguishes between lower-case and upper-case characters in file names. Microsoft Windows does not. For example, Linux treats pay12june and Pay12june as two different files, as different as pay12june and heighho. Windows users will have to adapt to this major difference. Even though I am a Linux fan I don’t see any advantage in the Linux way of naming files. Maybe I have spent too much time in the Windows environment.

File names should be relatively short. The allowed maximum is 255 characters but working with long file names is no fun and in fact is asking for trouble. Linux file names may not contain the character / which has a special meaning. To avoid misunderstanding don’t include special characters such as $ and & in your file names. Doing so could cause confusion and lead to hard-to-find errors. For the same reason don’t call your files by special Linux names such as etc.

Linux sometimes applies file extensions; common examples include . c to indicate a C-language program and . htm or . html to indicate one type of web page. Savvy Linux users often avoid coding the file extension but rely on the file directory to indicate the file type. Don’t give a Linux file a misleading file extension.

Use an editor to create or modify a text file. The old fashioned vi editor has been replaced by more powerful, user-friendly editors. Most versions of Linux come with several editors. Damn Small Linux, a popular version that runs under Windows, includes several editors such as Beaver that come quite close to being intuitive.

Linux provides an enormous variety of commands for processing files. Many of these commands are mnemonic; for example the command cp is used to copy files. Many commands include a wide variety of options. Consider the ls command, somewhat similar to the DIR command in the Windows environment. This seemingly simple command is quite rich and offers dozens and dozens of options many of which have no equivalent in the Windows environment.

Linux commands can be thought of as verbs. Just like most English sentences include more than a verb (go, jump) complete Linux commands contain the command itself and one or more objects. To copy a file you not only need to specify cp but also What and Where. For example, the command cp pay12june backuparea means copy the pay12june file into the backuparea directory.

Linux syntax (grammar rules) is quite strict and does take time to learn. But mastering Linux and associated technologies can lead to employment. The next step is mastering Linux directories.

Linux Commands?

Saturday, December 5th, 2009

hello to all linux people. I have a problem, I installed CS(Counter Strike) on Suse 10. 1, i followed the instructions to installation, i tried to play it, it did not work. i dont care. i want to remove it now. i tried many different commands. i know that the directory which contains the files, hlds, has a little, yellow lock on the icon. The commands i tried are rmdir, rm -r, remove, and others. i also read somewhere that i have to unlink it, which i look for but could not find on the internet.
thanks in advance.
in short, how can i remove a directory in Suse 10. 1 when it is not empty and has the little yellow lock on the icon of the directory?