EZ Linux Admin random header image

Server image magick test script

June 27th, 2009 by EZ linux · No Comments

ImageMagick

For a working sample click here: Server Image Magick Test Script

You can download the script here: Server Image Magick Test Script

DWHS Inc. Server Test Script
Server Test
Server Information:
Operating System: Linux
Web Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.9
Perl Information:
Version: 5.8.8
Location: /usr/bin/perl
Perl Modules:
Image::Info Perl Module: Not Installed ¹
File::Find Perl Module: Installed
Fcntl Perl Module: Installed
¹ Image::
Image Resizing Tools:
If any of the items below are installed
Image::Magick (PerlMagick) Perl Module: Installed
Image::Magick convert Utility: Path Unknown ²
GD Perl Module: Installed
² Image::Magick may be installed on your server
For questions on comments please visit our PHP Web Hosting Forum
For web hosting please visit DWHS Web Hosting

→ No Comments Tags: Linux Tricks · Linux software


Change default Linux text editor from VI to Pico

June 18th, 2009 by EZ linux · No Comments

pico

If only for the session just run this: export EDITOR=/usr/bin/pico

If you want to change it so every time it will use Pico do this:

Open the server command line

Run:

  1. export EDITOR=/usr/bin/pico
  2. pico ~/.bashrc

Add this line at the bottom of the file:

  1. export EDITOR=/usr/bin/pico

Save the file and your done.

This changes the server to always use Pico no matter when it’s being used.

→ No Comments Tags: Cheat Sheets · Linux Tricks · Linux software


Find a hostname from an ip

June 8th, 2009 by EZ linux · No Comments

command-run-windows

Here is a great quick Telnet exim windows command run ping trick.

Get the IP or Domains you want to get the hostname for.

Then click run on your windows desktop and put in this code:

telnet dwhs.net 25

Replace dwhs.net with the IP or Domain name. It will then give you the hostname for that server.

→ No Comments Tags: Linux Tricks


Cracker

May 28th, 2009 by EZ linux · No Comments

Cracker: n.

One who breaks security on a system. Coined ca. 1985 by hackers in defense against journalistic misuse of hacker (q.v., sense 8). An earlier attempt to establish worm in this sense around 1981–82 on Usenet was largely a failure.

Use of both these neologisms reflects a strong revulsion against the theft and vandalism perpetrated by cracking rings. The neologism “cracker” in this sense may have been influenced not so much by the term “safe-cracker” as by the non-jargon term “cracker”, which in Middle English meant an obnoxious person (e.g., “What cracker is this same that deafs our ears / With this abundance of superfluous breath?” — Shakespeare’s King John, Act II, Scene I) and in modern colloquial American English survives as a barely gentler synonym for “white trash”.

While it is expected that any real hacker will have done some playful cracking and knows many of the basic techniques, anyone past larval stage is expected to have outgrown the desire to do so except for immediate, benign, practical reasons (for example, if it’s necessary to get around some security in order to get some work done).

Thus, there is far less overlap between hackerdom and crackerdom than the mundane reader misled by sensationalistic journalism might expect. Crackers tend to gather in small, tight-knit, very secretive groups that have little overlap with the huge, open poly-culture this lexicon describes; though crackers often like to describe themselves as hackers, most true hackers consider them a separate and lower form of life. An easy way for outsiders to spot the difference is that crackers use grandiose screen names that conceal their identities. Hackers never do this; they only rarely use noms de guerre at all, and when they do it is for display rather than concealment.

Ethical considerations aside, hackers figure that anyone who can’t imagine a more interesting way to play with their computers than breaking into someone else’s has to be pretty losing. Some other reasons crackers are looked down on are discussed in the entries on cracking and phreaking. See also samurai, dark-side hacker, and hacker ethic. For a portrait of the typical teenage cracker, see warez d00dz.

To file a complaint go here: http://www.ic3.gov/

Or http://www.fbi.gov/

→ No Comments Tags: Linux Security


What Is a Hacker?

May 28th, 2009 by EZ linux · No Comments

glider

What Is a Hacker?

The Jargon File contains a bunch of definitions of the term ‘hacker’, most having to do with technical adeptness and a delight in solving problems and overcoming limits. If you want to know how to become a hacker, though, only two are really relevant.

There is a community, a shared culture, of expert programmers and networking wizards that traces its history back through decades to the first time-sharing minicomputers and the earliest ARPAnet experiments. The members of this culture originated the term ‘hacker’. Hackers built the Internet. Hackers made the Unix operating system what it is today. Hackers run Usenet. Hackers make the World Wide Web work. If you are part of this culture, if you have contributed to it and other people in it know who you are and call you a hacker, you’re a hacker.

The hacker mind-set is not confined to this software-hacker culture. There are people who apply the hacker attitude to other things, like electronics or music — actually, you can find it at the highest levels of any science or art. Software hackers recognize these kindred spirits elsewhere and may call them ‘hackers’ too — and some claim that the hacker nature is really independent of the particular medium the hacker works in. But in the rest of this document we will focus on the skills and attitudes of software hackers, and the traditions of the shared culture that originated the term ‘hacker’.

There is another group of people who loudly call themselves hackers, but aren’t. These are people (mainly adolescent males) who get a kick out of breaking into computers and phreaking the phone system. Real hackers call these people ‘crackers’ and want nothing to do with them. Real hackers mostly think crackers are lazy, irresponsible, and not very bright, and object that being able to break security doesn’t make you a hacker any more than being able to hotwire cars makes you an automotive engineer. Unfortunately, many journalists and writers have been fooled into using the word ‘hacker’ to describe crackers; this irritates real hackers no end.

The basic difference is this: hackers build things, crackers break them.

If you want to be a hacker, keep reading. If you want to be a cracker, go read the alt.2600 newsgroup and get ready to do five to ten in the slammer after finding out you aren’t as smart as you think you are. And that’s all I’m going to say about crackers.
The Hacker Attitude

1. The world is full of fascinating problems waiting to be solved.
2. No problem should ever have to be solved twice.
3. Boredom and drudgery are evil.
4. Freedom is good.
5. Attitude is no substitute for competence.

Hackers solve problems and build things, and they believe in freedom and voluntary mutual help. To be accepted as a hacker, you have to behave as though you have this kind of attitude yourself. And to behave as though you have the attitude, you have to really believe the attitude.

But if you think of cultivating hacker attitudes as just a way to gain acceptance in the culture, you’ll miss the point. Becoming the kind of person who believes these things is important for you — for helping you learn and keeping you motivated. As with all creative arts, the most effective way to become a master is to imitate the mind-set of masters — not just intellectually but emotionally as well.

Or, as the following modern Zen poem has it:

To follow the path:
look to the master,
follow the master,
walk with the master,
see through the master,
become the master.

So, if you want to be a hacker, repeat the following things until you believe them:
1. The world is full of fascinating problems waiting to be solved.

Being a hacker is lots of fun, but it’s a kind of fun that takes lots of effort. The effort takes motivation. Successful athletes get their motivation from a kind of physical delight in making their bodies perform, in pushing themselves past their own physical limits. Similarly, to be a hacker you have to get a basic thrill from solving problems, sharpening your skills, and exercising your intelligence.

If you aren’t the kind of person that feels this way naturally, you’ll need to become one in order to make it as a hacker. Otherwise you’ll find your hacking energy is sapped by distractions like sex, money, and social approval.

(You also have to develop a kind of faith in your own learning capacity — a belief that even though you may not know all of what you need to solve a problem, if you tackle just a piece of it and learn from that, you’ll learn enough to solve the next piece — and so on, until you’re done.)
2. No problem should ever have to be solved twice.

Creative brains are a valuable, limited resource. They shouldn’t be wasted on re-inventing the wheel when there are so many fascinating new problems waiting out there.

To behave like a hacker, you have to believe that the thinking time of other hackers is precious — so much so that it’s almost a moral duty for you to share information, solve problems and then give the solutions away just so other hackers can solve new problems instead of having to perpetually re-address old ones.

Note, however, that “No problem should ever have to be solved twice.” does not imply that you have to consider all existing solutions sacred, or that there is only one right solution to any given problem. Often, we learn a lot about the problem that we didn’t know before by studying the first cut at a solution. It’s OK, and often necessary, to decide that we can do better. What’s not OK is artificial technical, legal, or institutional barriers (like closed-source code) that prevent a good solution from being re-used and force people to re-invent wheels.

(You don’t have to believe that you’re obligated to give all your creative product away, though the hackers that do are the ones that get most respect from other hackers. It’s consistent with hacker values to sell enough of it to keep you in food and rent and computers. It’s fine to use your hacking skills to support a family or even get rich, as long as you don’t forget your loyalty to your art and your fellow hackers while doing it.)
3. Boredom and drudgery are evil.

Hackers (and creative people in general) should never be bored or have to drudge at stupid repetitive work, because when this happens it means they aren’t doing what only they can do — solve new problems. This wastefulness hurts everybody. Therefore boredom and drudgery are not just unpleasant but actually evil.

To behave like a hacker, you have to believe this enough to want to automate away the boring bits as much as possible, not just for yourself but for everybody else (especially other hackers).

(There is one apparent exception to this. Hackers will sometimes do things that may seem repetitive or boring to an observer as a mind-clearing exercise, or in order to acquire a skill or have some particular kind of experience you can’t have otherwise. But this is by choice — nobody who can think should ever be forced into a situation that bores them.)
4. Freedom is good.

Hackers are naturally anti-authoritarian. Anyone who can give you orders can stop you from solving whatever problem you’re being fascinated by — and, given the way authoritarian minds work, will generally find some appallingly stupid reason to do so. So the authoritarian attitude has to be fought wherever you find it, lest it smother you and other hackers.

(This isn’t the same as fighting all authority. Children need to be guided and criminals restrained. A hacker may agree to accept some kinds of authority in order to get something he wants more than the time he spends following orders. But that’s a limited, conscious bargain; the kind of personal surrender authoritarians want is not on offer.)

Authoritarians thrive on censorship and secrecy. And they distrust voluntary cooperation and information-sharing — they only like ‘cooperation’ that they control. So to behave like a hacker, you have to develop an instinctive hostility to censorship, secrecy, and the use of force or deception to compel responsible adults. And you have to be willing to act on that belief.
5. Attitude is no substitute for competence.

To be a hacker, you have to develop some of these attitudes. But copping an attitude alone won’t make you a hacker, any more than it will make you a champion athlete or a rock star. Becoming a hacker will take intelligence, practice, dedication, and hard work.

Therefore, you have to learn to distrust attitude and respect competence of every kind. Hackers won’t let posers waste their time, but they worship competence — especially competence at hacking, but competence at anything is valued. Competence at demanding skills that few can master is especially good, and competence at demanding skills that involve mental acuteness, craft, and concentration is best.

If you revere competence, you’ll enjoy developing it in yourself — the hard work and dedication will become a kind of intense play rather than drudgery. That attitude is vital to becoming a hacker.
Basic Hacking Skills

1. Learn how to program.
2. Get one of the open-source Unixes and learn to use and run it.
3. Learn how to use the World Wide Web and write HTML.
4. If you don’t have functional English, learn it.

The hacker attitude is vital, but skills are even more vital. Attitude is no substitute for competence, and there’s a certain basic toolkit of skills which you have to have before any hacker will dream of calling you one.

This toolkit changes slowly over time as technology creates new skills and makes old ones obsolete. For example, it used to include programming in machine language, and didn’t until recently involve HTML. But right now it pretty clearly includes the following:
1. Learn how to program.

This, of course, is the fundamental hacking skill. If you don’t know any computer languages, I recommend starting with Python. It is cleanly designed, well documented, and relatively kind to beginners. Despite being a good first language, it is not just a toy; it is very powerful and flexible and well suited for large projects. I have written a more detailed evaluation of Python. Good tutorials are available at the Python web site.

I used to recommend Java as a good language to learn early, but this critique has changed my mind (search for “The Pitfalls of Java as a First Programming Language” within it). A hacker cannot, as they devastatingly put it “approach problem-solving like a plumber in a hardware store”; you have to know what the components actually do. Now I think it is probably best to learn C and Lisp first, then Java.

If you get into serious programming, you will have to learn C, the core language of Unix. C++ is very closely related to C; if you know one, learning the other will not be difficult. Neither language is a good one to try learning as your first, however. And, actually, the more you can avoid programming in C the more productive you will be.

C is very efficient, and very sparing of your machine’s resources. Unfortunately, C gets that efficiency by requiring you to do a lot of low-level management of resources (like memory) by hand. All that low-level code is complex and bug-prone, and will soak up huge amounts of your time on debugging. With today’s machines as powerful as they are, this is usually a bad tradeoff — it’s smarter to use a language that uses the machine’s time less efficiently, but your time much more efficiently. Thus, Python.

Other languages of particular importance to hackers include Perl and LISP. Perl is worth learning for practical reasons; it’s very widely used for active web pages and system administration, so that even if you never write Perl you should learn to read it. Many people use Perl in the way I suggest you should use Python, to avoid C programming on jobs that don’t require C’s machine efficiency. You will need to be able to understand their code.

LISP is worth learning for a different reason — the profound enlightenment experience you will have when you finally get it. That experience will make you a better programmer for the rest of your days, even if you never actually use LISP itself a lot. (You can get some beginning experience with LISP fairly easily by writing and modifying editing modes for the Emacs text editor, or Script-Fu plugins for the GIMP.)

It’s best, actually, to learn all five of Python, C/C++, Java, Perl, and LISP. Besides being the most important hacking languages, they represent very different approaches to programming, and each will educate you in valuable ways.

But be aware that you won’t reach the skill level of a hacker or even merely a programmer simply by accumulating languages — you need to learn how to think about programming problems in a general way, independent of any one language. To be a real hacker, you need to get to the point where you can learn a new language in days by relating what’s in the manual to what you already know. This means you should learn several very different languages.

I can’t give complete instructions on how to learn to program here — it’s a complex skill. But I can tell you that books and courses won’t do it — many, maybe most of the best hackers are self-taught. You can learn language features — bits of knowledge — from books, but the mind-set that makes that knowledge into living skill can be learned only by practice and apprenticeship. What will do it is (a) reading code and (b) writing code.

Peter Norvig, who is one of Google’s top hackers and the co-author of the most widely used textbook on AI, has written an excellent essay called Teach Yourself Programming in Ten Years. His “recipe for programming success” is worth careful attention.

Learning to program is like learning to write good natural language. The best way to do it is to read some stuff written by masters of the form, write some things yourself, read a lot more, write a little more, read a lot more, write some more … and repeat until your writing begins to develop the kind of strength and economy you see in your models.

Finding good code to read used to be hard, because there were few large programs available in source for fledgeling hackers to read and tinker with. This has changed dramatically; open-source software, programming tools, and operating systems (all built by hackers) are now widely available. Which brings me neatly to our next topic…
2. Get one of the open-source Unixes and learn to use and run it.

I’ll assume you have a personal computer or can get access to one. (Take a moment to appreciate how much that means. The hacker culture originally evolved back when computers were so expensive that individuals could not own them.) The single most important step any newbie can take toward acquiring hacker skills is to get a copy of Linux or one of the BSD-Unixes or OpenSolaris, install it on a personal machine, and run it.

Yes, there are other operating systems in the world besides Unix. But they’re distributed in binary — you can’t read the code, and you can’t modify it. Trying to learn to hack on a Microsoft Windows machine or under any other closed-source system is like trying to learn to dance while wearing a body cast.

Under Mac OS X it’s possible, but only part of the system is open source — you’re likely to hit a lot of walls, and you have to be careful not to develop the bad habit of depending on Apple’s proprietary code. If you concentrate on the Unix under the hood you can learn some useful things.

Unix is the operating system of the Internet. While you can learn to use the Internet without knowing Unix, you can’t be an Internet hacker without understanding Unix. For this reason, the hacker culture today is pretty strongly Unix-centered. (This wasn’t always true, and some old-time hackers still aren’t happy about it, but the symbiosis between Unix and the Internet has become strong enough that even Microsoft’s muscle doesn’t seem able to seriously dent it.)

So, bring up a Unix — I like Linux myself but there are other ways (and yes, you can run both Linux and Microsoft Windows on the same machine). Learn it. Run it. Tinker with it. Talk to the Internet with it. Read the code. Modify the code. You’ll get better programming tools (including C, LISP, Python, and Perl) than any Microsoft operating system can dream of hosting, you’ll have fun, and you’ll soak up more knowledge than you realize you’re learning until you look back on it as a master hacker.

For more about learning Unix, see The Loginataka. You might also want to have a look at The Art Of Unix Programming.

To get your hands on a Linux, see the Linux Online! site; you can download from there or (better idea) find a local Linux user group to help you with installation.

During the first ten years of this HOWTO’s life, I reported that from a new user’s point of view, all Linux distributions are almost equivalent. But in 2006-2007, an actual best choice emerged: Ubuntu. While other distros have their own areas of strength, Ubuntu is far and away the most accessible to Linux newbies.

You can find BSD Unix help and resources at www.bsd.org.

A good way to dip your toes in the water is to boot up what Linux fans call a live CD, a distribution that runs entirely off a CD without having to modify your hard disk. This will be slow, because CDs are slow, but it’s a way to get a look at the possibilities without having to do anything drastic.

I have written a primer on the basics of Unix and the Internet.

I used to recommend against installing either Linux or BSD as a solo project if you’re a newbie. Nowadays the installers have gotten good enough that doing it entirely on your own is possible, even for a newbie. Nevertheless, I still recommend making contact with your local Linux user’s group and asking for help. It can’t hurt, and may smooth the process.
3. Learn how to use the World Wide Web and write HTML.

Most of the things the hacker culture has built do their work out of sight, helping run factories and offices and universities without any obvious impact on how non-hackers live. The Web is the one big exception, the huge shiny hacker toy that even politicians admit has changed the world. For this reason alone (and a lot of other good ones as well) you need to learn how to work the Web.

This doesn’t just mean learning how to drive a browser (anyone can do that), but learning how to write HTML, the Web’s markup language. If you don’t know how to program, writing HTML will teach you some mental habits that will help you learn. So build a home page. Try to stick to XHTML, which is a cleaner language than classic HTML. (There are good beginner tutorials on the Web; here’s one.)

But just having a home page isn’t anywhere near good enough to make you a hacker. The Web is full of home pages. Most of them are pointless, zero-content sludge — very snazzy-looking sludge, mind you, but sludge all the same (for more on this see The HTML Hell Page).

To be worthwhile, your page must have content — it must be interesting and/or useful to other hackers. And that brings us to the next topic…
4. If you don’t have functional English, learn it.

As an American and native English-speaker myself, I have previously been reluctant to suggest this, lest it be taken as a sort of cultural imperialism. But several native speakers of other languages have urged me to point out that English is the working language of the hacker culture and the Internet, and that you will need to know it to function in the hacker community.

Back around 1991 I learned that many hackers who have English as a second language use it in technical discussions even when they share a birth tongue; it was reported to me at the time that English has a richer technical vocabulary than any other language and is therefore simply a better tool for the job. For similar reasons, translations of technical books written in English are often unsatisfactory (when they get done at all).

Linus Torvalds, a Finn, comments his code in English (it apparently never occurred to him to do otherwise). His fluency in English has been an important factor in his ability to recruit a worldwide community of developers for Linux. It’s an example worth following.

Being a native English-speaker does not guarantee that you have language skills good enough to function as a hacker. If your writing is semi-literate, ungrammatical, and riddled with misspellings, many hackers (including myself) will tend to ignore you. While sloppy writing does not invariably mean sloppy thinking, we’ve generally found the correlation to be strong — and we have no use for sloppy thinkers. If you can’t yet write competently, learn to.
Status in the Hacker Culture

1. Write open-source software
2. Help test and debug open-source software
3. Publish useful information
4. Help keep the infrastructure working
5. Serve the hacker culture itself

Like most cultures without a money economy, hackerdom runs on reputation. You’re trying to solve interesting problems, but how interesting they are, and whether your solutions are really good, is something that only your technical peers or superiors are normally equipped to judge.

Accordingly, when you play the hacker game, you learn to keep score primarily by what other hackers think of your skill (this is why you aren’t really a hacker until other hackers consistently call you one). This fact is obscured by the image of hacking as solitary work; also by a hacker-cultural taboo (gradually decaying since the late 1990s but still potent) against admitting that ego or external validation are involved in one’s motivation at all.

Specifically, hackerdom is what anthropologists call a gift culture. You gain status and reputation in it not by dominating other people, nor by being beautiful, nor by having things other people want, but rather by giving things away. Specifically, by giving away your time, your creativity, and the results of your skill.

There are basically five kinds of things you can do to be respected by hackers:
1. Write open-source software

The first (the most central and most traditional) is to write programs that other hackers think are fun or useful, and give the program sources away to the whole hacker culture to use.

(We used to call these works “free software”, but this confused too many people who weren’t sure exactly what “free” was supposed to mean. Most of us now prefer the term “open-source” software).

Hackerdom’s most revered demigods are people who have written large, capable programs that met a widespread need and given them away, so that now everyone uses them.

But there’s a bit of a fine historical point here. While hackers have always looked up to the open-source developers among them as our community’s hardest core, before the mid-1990s most hackers most of the time worked on closed source. This was still true when I wrote the first version of this HOWTO in 1996; it took the mainstreaming of open-source software after 1997 to change things. Today, “the hacker community” and “open-source developers” are two descriptions for what is essentially the same culture and population — but it is worth remembering that this was not always so.
2. Help test and debug open-source software

They also serve who stand and debug open-source software. In this imperfect world, we will inevitably spend most of our software development time in the debugging phase. That’s why any open-source author who’s thinking will tell you that good beta-testers (who know how to describe symptoms clearly, localize problems well, can tolerate bugs in a quickie release, and are willing to apply a few simple diagnostic routines) are worth their weight in rubies. Even one of these can make the difference between a debugging phase that’s a protracted, exhausting nightmare and one that’s merely a salutary nuisance.

If you’re a newbie, try to find a program under development that you’re interested in and be a good beta-tester. There’s a natural progression from helping test programs to helping debug them to helping modify them. You’ll learn a lot this way, and generate good karma with people who will help you later on.
3. Publish useful information

Another good thing is to collect and filter useful and interesting information into web pages or documents like Frequently Asked Questions (FAQ) lists, and make those generally available.

Maintainers of major technical FAQs get almost as much respect as open-source authors.
4. Help keep the infrastructure working

The hacker culture (and the engineering development of the Internet, for that matter) is run by volunteers. There’s a lot of necessary but unglamorous work that needs done to keep it going — administering mailing lists, moderating newsgroups, maintaining large software archive sites, developing RFCs and other technical standards.

People who do this sort of thing well get a lot of respect, because everybody knows these jobs are huge time sinks and not as much fun as playing with code. Doing them shows dedication.
5. Serve the hacker culture itself

Finally, you can serve and propagate the culture itself (by, for example, writing an accurate primer on how to become a hacker :-) ). This is not something you’ll be positioned to do until you’ve been around for while and become well-known for one of the first four things.

The hacker culture doesn’t have leaders, exactly, but it does have culture heroes and tribal elders and historians and spokespeople. When you’ve been in the trenches long enough, you may grow into one of these. Beware: hackers distrust blatant ego in their tribal elders, so visibly reaching for this kind of fame is dangerous. Rather than striving for it, you have to sort of position yourself so it drops in your lap, and then be modest and gracious about your status.
The Hacker/Nerd Connection

Contrary to popular myth, you don’t have to be a nerd to be a hacker. It does help, however, and many hackers are in fact nerds. Being something of a social outcast helps you stay concentrated on the really important things, like thinking and hacking.

For this reason, many hackers have adopted the label ‘geek’ as a badge of pride — it’s a way of declaring their independence from normal social expectations (as well as a fondness for other things like science fiction and strategy games that often go with being a hacker). The term ‘nerd’ used to be used this way back in the 1990s, back when ‘nerd’ was a mild pejorative and ‘geek’ a rather harsher one; sometime after 2000 they switched places, at least in U.S. popular culture, and there is now even a significant geek-pride culture among people who aren’t techies.

If you can manage to concentrate enough on hacking to be good at it and still have a life, that’s fine. This is a lot easier today than it was when I was a newbie in the 1970s; mainstream culture is much friendlier to techno-nerds now. There are even growing numbers of people who realize that hackers are often high-quality lover and spouse material.

If you’re attracted to hacking because you don’t have a life, that’s OK too — at least you won’t have trouble concentrating. Maybe you’ll get a life later on.
Points For Style

Again, to be a hacker, you have to enter the hacker mindset. There are some things you can do when you’re not at a computer that seem to help. They’re not substitutes for hacking (nothing is) but many hackers do them, and feel that they connect in some basic way with the essence of hacking.

*

Learn to write your native language well. Though it’s a common stereotype that programmers can’t write, a surprising number of hackers (including all the most accomplished ones I know of) are very able writers.
*

Read science fiction. Go to science fiction conventions (a good way to meet hackers and proto-hackers).
*

Train in a martial-arts form. The kind of mental discipline required for martial arts seems to be similar in important ways to what hackers do. The most popular forms among hackers are definitely Asian empty-hand arts such as Tae Kwon Do, various forms of Karate, Kung Fu, Aikido, or Ju Jitsu. Western fencing and Asian sword arts also have visible followings. In places where it’s legal, pistol shooting has been rising in popularity since the late 1990s. The most hackerly martial arts are those which emphasize mental discipline, relaxed awareness, and control, rather than raw strength, athleticism, or physical toughness.
*

Study an actual meditation discipline. The perennial favorite among hackers is Zen (importantly, it is possible to benefit from Zen without acquiring a religion or discarding one you already have). Other styles may work as well, but be careful to choose one that doesn’t require you to believe crazy things.
*

Develop an analytical ear for music. Learn to appreciate peculiar kinds of music. Learn to play some musical instrument well, or how to sing.
*

Develop your appreciation of puns and wordplay.

The more of these things you already do, the more likely it is that you are natural hacker material. Why these things in particular is not completely clear, but they’re connected with a mix of left- and right-brain skills that seems to be important; hackers need to be able to both reason logically and step outside the apparent logic of a problem at a moment’s notice.

Work as intensely as you play and play as intensely as you work. For true hackers, the boundaries between “play”, “work”, “science” and “art” all tend to disappear, or to merge into a high-level creative playfulness. Also, don’t be content with a narrow range of skills. Though most hackers self-describe as programmers, they are very likely to be more than competent in several related skills — system administration, web design, and PC hardware troubleshooting are common ones. A hacker who’s a system administrator, on the other hand, is likely to be quite skilled at script programming and web design. Hackers don’t do things by halves; if they invest in a skill at all, they tend to get very good at it.

Finally, a few things not to do.

*

Don’t use a silly, grandiose user ID or screen name.
*

Don’t get in flame wars on Usenet (or anywhere else).
*

Don’t call yourself a ‘cyberpunk’, and don’t waste your time on anybody who does.
*

Don’t post or email writing that’s full of spelling errors and bad grammar.

The only reputation you’ll make doing any of these things is as a twit. Hackers have long memories — it could take you years to live your early blunders down enough to be accepted.

The problem with screen names or handles deserves some amplification. Concealing your identity behind a handle is a juvenile and silly behavior characteristic of crackers, warez d00dz, and other lower life forms. Hackers don’t do this; they’re proud of what they do and want it associated with their real names. So if you have a handle, drop it. In the hacker culture it will only mark you as a loser.
Other Resources

Paul Graham has written an essay called Great Hackers, and another on Undergraduation, in which he speaks much wisdom.

There is a document called How To Be A Programmer that is an excellent complement to this one. It has valuable advice not just about coding and skillsets, but about how to function on a programming team.

I have also written A Brief History Of Hackerdom.

I have written a paper, The Cathedral and the Bazaar, which explains a lot about how the Linux and open-source cultures work. I have addressed this topic even more directly in its sequel Homesteading the Noosphere.

Rick Moen has written an excellent document on how to run a Linux user group.

Rick Moen and I have collaborated on another document on How To Ask Smart Questions. This will help you seek assistance in a way that makes it more likely that you will actually get it.

If you need instruction in the basics of how personal computers, Unix, and the Internet work, see The Unix and Internet Fundamentals HOWTO.

When you release software or write patches for software, try to follow the guidelines in the Software Release Practice HOWTO.

If you enjoyed the Zen poem, you might also like Rootless Root: The Unix Koans of Master Foo.

→ No Comments Tags: Linux Security


The Un-official Computer Terms Dictionary

May 28th, 2009 by EZ linux · No Comments

dictionary

A

@ – Used in an email address, the @ sign joins a username on the left with the server that hosts the electronic mailbox. It is also sometimes used in defining mail exchange records (see MX Record). The @ sign is now the standard protocol worldwide for email addresses.

Additional email – Additional email addresses (in addition to the primary) for a domain. The price is currently set at $5 per year per additional email.

A record – IP address Pointer.

Abuse – Generic term used to complain about or describe spamming.

Ad banner – A graphic or a banner on a webpage that when clicked on, takes the surfer to another site.

Ad Clicks – A click on an advertisement on a website that takes a surfer to another site.

Ad Views (Impressions) – The number of times an ad banner is downloaded and presumably seen by visitors. If the same ad appears on multiple pages simultaneously, this statistic may understate the number of ad impressions, due to browser caching.

Address Verification System (AVS) – A service provided by a processor that offers additional features to validate the purchaser as the rightful cardholder by verifying whether the address submitted by the purchaser matches the billing address on file with a credit card company.

ASP – Stands for Active Server Pages. A specification for a Web page that is dynamically created by the webserver and contains both HTML and scripting code. With ASP, programs can be run on a webserver in a similar way to CGI scripts, but ASP uses the ActiveX scripting engine to support either VBScript or JScript. When a user requests data from an Active Server Page, the ActiveX server engine reads through the file, sends the HTML back to the browser and executes the script. Active Server Pages were first available on the Microsoft Internet Information Server (IIS) 3.0. They have the .ASP filename extension.

Authorization – The process of verifying that a credit card has sufficient funds (credit) available to cover the amount of the transaction. The authorization also validates the credit card. An authorization is obtained for every sale.

B

Backbone – A high-speed line or series of connections that forms a large pathway within a network. The term is relative to the size of the network it is serving. A backbone in a small network would probably be much smaller than many non-backbone lines in a large network.

Bandwidth – The amount of information (text, images, video, sound) that can be sent through a connection. Usually measured in bits-per-second. A full page of text is about 16,000 bits. A fast modem can move approximately 15,000 bits in one second.

Batch – A collection of credit card transactions saved for submitting at one time, usually each day. Batch fees are charged to encourage a merchant to submit his or her transactions at one time, rather than throughout the day. At directNIC, batches are performed daily at 10 pm.

BBS – Bulletin Board System. 1. A computerized version of the bulletin boards found in stores and other public places, where people can leave messages and advertise things they want to buy or sell. Local computer user groups often run BBSs, and offer downloads of shareware and freeware plus online information and services. There are special interest bulletin boards, including those run by computer companies to provide information on their products. Many BBSs now have web pages. 2. In chat, it stands for “Be Back soon.”

BIN – A MacBinary II encoded file (filename extension). This file type, downloaded as MacBinary or Binary, can be decompressed with Stuffit Expander.

BMP – Bitmap image file typically used with windows.

Bookmark – Ability to add a URL to a list of favorites on a browser.

Broadband – Broadband refers to telecommunication that provides multiple channels of data over a single communications medium (i.e. DSL, Cable internet connections).

Browser – A program used to locate and view HTML documents (Netscape or Microsoft Explorer, for example.)

Browser Caching – To speed surfing, browsers store recently used pages on a user’s disk. If a site is revisited, browsers display pages from the disk instead of requesting them from the server. As a result, servers undercount the number of times a page is viewed.

C

C++ (CPP, C Plus Plus, or C++) – A programming language.

CA – Certificate Authority. A Certificate Authority is a company that is authorized to issue, renew, and revoke digital certificates after verifying the identity and legitimacy of the requesting party through a registration authority.

Cable Modem – A cable modem is a device that enables you to hook up your PC to a local cable TV line and receive data at about 1.5 Mbps . This data rate far exceeds that of the prevalent 28.8 and 56 Kbps telephone modems and the up to 128 Kbps of Integrated Services Digital Network (ISDN) and is about the data rate available to subscribers of Digital Subscriber Line (DSL) telephone service. A cable modem can be added to or integrated with a set-top box that provides your TV set with channels for Internet access. In most cases, cable modems are furnished as part of the cable access service and are not purchased directly and installed by the subscriber. The actual bandwidth for Internet service over a cable TV line is up to 27 Mbps on the download path to the subscriber with about 2.5 Mbps of bandwidth for interactive responses in the other direction. However, since the local provider may not be connected to the Internet on a line faster than a T-carrier system at 1.5 Mpbs, a more likely data rate will be close to 1.5 Mpbs.

Cache – A temporary storage area for frequently accessed or recently accessed data. Having certain data stored in cache, speeds up the operation of the computer. There are two kinds of cache: internal (or memory cache) and external (or disk cache). Internal cache is built into the CPU, and external cache is on the motherboard. When an item is called for, the computer first checks the internal cache, then the external cache, and finally the slower, main storage. A cache hit (accessing data from a cache) takes much less time than retrieving information from the main memory; the cache has high-speed memory chips. The cache may also be used as a temporary storage area for data that will be written to disk when the computer is idle.

Canonical – conforming to a general rule or acceptable procedure.

Central Registry – VeriSign Global Registry Services (http://www.nsiregistry.com) (VeriSign GRS) is the leading provider of domain name registry services and Domain Name System (DNS) support to the Internet. The division maintains the definitive directory of over 30 million .com, .net, and .org Web addresses and is responsible for the infrastructure that propagates this information throughout the Internet and responds to over 1.5 billion DNS look-ups daily.

CGI – Common Gateway Interface is a special type of UNIX program that allows a web server to access an application and transfer the information to your display. An interface-creation scripting program that allows Web pages to be made on the fly, based on information from buttons, checkboxes, text input, etc.

Chargeback – A fee charged by a merchant services provider against a merchant account for transactions that are successfully challenged by a credit card holder. After a charge is disputed and adjudicated in the cardholder’s favor, the transaction total and chargeback fee are deducted from the merchant account.

Chat Room – A place on the Internet where people go to “chat” with other people. The “rooms” are usually organized by topics.

Click Through Rate – Percentage of users who click on a viewed advertisement. This is an indication of the effectiveness of an ad.

Client – The browser used by a visitor to a website.

Close – The process of sending the batch for settlement.

CNAME – The canonical name for an alias.

Commerce Server – A Web server that contains the software necessary for processing customer orders via the Web, including shopping cart programs, dynamic inventory databases, and online payment systems. Commerce servers are also usually secure servers.

Complainant – means the party initiating a complaint concerning a domain-name registration.

Compression – A technology that reduces the size of a file to help save both time and bandwidth.

Content – Content is any information viewable on the Internet, including graphics such as a bar chart of company sales, or a photograph of a museum piece. Content can be lists of Web addresses of other sites of interest to the reader. It can be just texts.

Cookies – A cookie is a set of data that a website server gives to a browser the first time the user visits the site that is updated with each return visit. The remote server saves the information the cookie contains about the user and the user’s browser does the same, as a text file stored in the Netscape or Explorer system folder. Not all browsers support cookies. Cookies store information, such as username and password and what parts of the site were visited. This information can be updated with each visit. The browser only shares each cookie with the server that originated it; other servers can only read their own cookies. Netscape can be set up to alert the user when a cookie is being sent, so the user can accept it or not, by means of the Network Preferences window. There are also downloadable applications that eat cookies such as Cookie Killers, Cookie Monster (Mac), and Kill Cookie Batch File (PC). Counter – A number on Web pages that displays the amount of hits or counts the times the page has been accessed. In other words, it counts the number of people that have visited that page.

CPM – CPM is the cost per thousand for a particular site. A website that charges $15,000 per banner and guarantees 600,000 impressions has a CPM of $25 ($15,000 divided by 600).

Credit Card Processors – Merchant services providers that handle the details of processing credit card transactions between merchants, issuing banks, and merchant account providers. Website operators usually must first establish their own merchant account before contracting for credit card processing services.

CSR – Certificate Signing Request. A CSR is a text file, generated through a web server that is submitted to the Certificate Authority during the digital certificate application process and used to generate a signed digital certificate identifying information about the company applying for the digital certificate.

Cybermarketing – Any type of Internet-based promotion, including website promotion through websites, targeted email, and Internet bulletin boards.

Cyberspace – A metaphor for describing the non-physical terrain created by computer systems. Online systems, for example, create a cyberspace within which people can communicate with one another (via e-mail), do research, or simply window shop. Like physical space, cyberspace contains objects (files, mail messages, graphics, etc.) and different modes of transportation and delivery. Unlike real space, though, exploring cyberspace does not require any physical movement other than pressing keys on a keyboard or moving a mouse. Some programs, particularly computer games, are designed to create a special cyberspace, one that resembles physical reality in some ways but defies it in others. In its extreme form, called virtual reality, users are presented with visual, auditory, and even tactile feedback that makes cyberspace feel real. The term was coined by author William Gibson in his sci-fi novel Neuromancer (1984).

D

Daemon — In the UNIX operating system, a daemon is a background process that lies dormant waiting to perform some useful tasks. The send mail daemon, for example, continually runs but becomes active only when email is sent or received.

Database — A file or file system containing organized information and, most commonly, a filing and retrieval system for storing information. Most database software also includes tools for data analysis. Examples of database software include Oracle, Sybase, Microsoft Access, Lotus Approach, Microsoft Access, Filemaker, dBASE, MySQL, mSQL, Microsoft SQL. Debit Card – A financial instrument used by consumers in place of cash. Unlike a credit card, debit card purchases are deducted automatically from the cardholder’s account.

DHTML – Dynamic HTML is a collective term for a combination of new Hypertext Markup Language (HTML) tags and options, that will let you create Web pages more animated and more responsive to user interaction than previous versions of HTML. Much of dynamic HTML is specified in HTML 4.0. Simple examples of dynamic HTML pages would include (1) having the color of a text heading change when a user passes a mouse over it or (2) allowing a user to “drag and drop” an image to another place on a Web page. Dynamic HTML can allow Web documents to look and act like desktop applications or multimedia productions. The biggest obstacle to the use of dynamic HTML is that, since many users are still using older browsers, a Web site must create two versions of each site and serve the pages appropriate to each user’s browser version.

Dial-up access – Refers to connecting a device to a network via a modem and a public telephone network. Dial-up access is really just like a phone connection, except that the parties at the two ends are computer devices rather than people. Because dial-up access uses normal telephone lines, the quality of the connection is not always good and data rates are limited. In the past, the maximum data rate with dial-up access was 56 Kbps (56,000 bits per second), but new technologies such as ISDN are providing faster rates. An alternative way to connect two computers is through a leased line, which is a permanent connection between two devices. Leased lines provide faster throughput and better quality connections, but they are also more expensive.

Dig – 1) (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the nameserver(s) that were queried. Most DNS administra tors use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig. Although dig is normally used with command-line arguments, it also has a batch mode of operation for reading lookup requests from a file. A brief summary of its command-line arguments and options is printed when the -h option is given. Unlike earlier versions, the BIND9 implementation of dig allows multiple lookups to be issued from the command line. 2) What you do with a shovel.

Digital Wallet – A consumer account setup to allow e-commerce transactions through a particular credit card processing system. Before the consumer can make a purchase, he or she must first establish an account with the credit card processor, who provides an ID and password. These can then be used to make purchases at any website that supports that transaction system. Discount Rate – A percentage fee paid to the merchant account provider or ISO for handling an electronic transaction. Most Web merchants pay between two and 10 percent of their revenue from online credit card or electronic check orders.

DNS – 1) Short for Domain Name System (or Service), an Internet service that translates domain names into IP addresses. Because domain names are alphabetic, they’re easier to remember. The Internet however, is really based on IP addresses. Every time you use a domain name, therefore, a DNS service must translate the name into the corresponding IP address. For example, the domain name www.example.com might translate to 198.105.232.4. The DNS system is, in fact, its own network. If one DNS server doesn’t know how to translate a particular domain name, it asks another one, and so on, until the correct IP address is returned. 2) Short for digital nervous system, a term coined by Bill Gates to describe a network Domain Name – An Internet address in alphabetic form. Domain names must have at least 2 parts: the part on the left that names the organization, and the part on the right that identifies the highest sub-domain, such as the country (fr for France, uk for United Kingdom) or the type of organization (com for commercial; edu for educational, etc.). Directory levels can be indicated in other parts. The IP address is translated into the domain name by the domain name server domains or to print a list of hosts in a domain.

Domain Parking – In the Web hosting business, DNS parking is a service that the Web host will offer to its clients as a way of securing a domain name for future use. The Web host registers the domain name with a registrar such as directNIC and “parks” the domain name on a server until it is ready to be made active. By doing this, the Web host ensures the availability of the domain name for the client’s future use so that another individual or company cannot register that same domain name.

Download – The transfer of information from the Internet to your computer. Every time you instruct your computer system to retrieve your mail, you are downloading your mail to your computer. You may also download programs to your computer. However, be careful about downloading files or programs from a site in which you are not familiar. You could download a virus and not know it until it’s too late.

DSL – DSL (Digital Subscriber Line) is a technology for bringing high-bandwidth information to homes and small businesses over ordinary copper telephone lines. xDSL refers to different variations of DSL, such as ADSL, HDSL, and RADSL. Assuming your home or small business is close enough to a telephone company central office that offers DSL service, you may be able to receive data at rates up to 6.1 megabits (millions of bits) per second (of a theoretical 8.448 megabits per second), enabling continuous transmission of motion video, audio, and even 3-D effects. More typically, individual connections will provide from 1.544 Mbps to 512 Kbps downstream and about 128 Kbps upstream. A DSL line can carry both data and voice signals and the data part of the line is continuously connected.

Dynamic DNS – When you connect to the Internet, your ISP assigns you one of two types of machine readable addresses: static or dynamic. A static address never changes. A dynamic address changes every time you dial into the ISP and get on the net. So you may (and probably will) have one address right now and another address next time you dial in. The nameservers need to be told that it changed and this is where dyndns (short for “dynamic name server”) comes in. It automates the process of advising the name servers that your IP has changed.

Dynamic – Performed while a program is running. of personal computers that make it easier to obtain and understand information

E

E-Commerce – The processing of economic transactions, such as buying and selling, through electronic communication. E-commerce often refers to transactions occurring on the Internet, such as credit card purchases at websites.

Editor – Any program that is used to write and modify text.

Electronic Data Interchange – EDI is a global computer network, separate from the Internet, used to handle financial transactions between banks and other institutions.

Email – Electronic mail. Your ISP usually provides this tool. It allows you to send and receive mail (messages) over the Internet. Through email, you can write your friends, ask your ISP a technical question about your service, or even receive an Internet birthday card.

Email forwarding – To have an email alias that “forwards” mail to an existing email address.

Embedded hyperlink – a hyperlink that is incorporated into a line of text.

Ethernet – The most popular type of local area network, which sends its communications through radio frequency signals carried by a coaxial cable. Each computer checks to see if another computer is transmitting and waits its turn to transmit. If two computers accidentally transmit at the same time and their messages collide, they wait and send again in turn. Software protocols used by Ethernet systems vary, but include Novell Netware and TCP/IP.

Expiration – the act of coming to an end or the point at which something ends.

F

Factoring – The purchase of debts owed, or “accounts receivable,” in exchange for immediate payment at a discount. In e-commerce, the term is often applied to ISOs that offer to process credit card transactions through their own merchant account rather than through an account established by the merchant, in exchange for a percentage of the transaction or other fee. Factoring of credit card debt is illegal.

Filter – A means of narrowing the scope of a report or view by specifying ranges or types of data to include or exclude.

Firewall – An electronic boundary that prevents unauthorized users from accessing certain files on a network; or, a computer used to maintain such a boundary.

Forms – An HTML element that passes variable data back to the server. Scripts on the server use these variables to gather information from users.

FQDN – Stands for Fully Qualified Domain Name: the full name of a system that contains its hostname and domain name. (essentially is the nameserver itself (ns.domainname.com))

Front End – The user interface that appears on a Web page and allows a visitor to the site to interact with dynamic features, including databases, shopping cart programs, and online purchase processing software.

FTP – An acronym for File Transfer Protocol. It’s also the tool used to transfer files through the Internet from one computer to another. For example, you would use an FTP to upload your webpage from where you built it (like your computer at home) to a website (like this one) so that all of your friends and neighbors can look at it. Examples are CuteFTP, WsFTP, and FrontPage.

G

gif – Graphics Interchange Format. A format used for displaying bitmap images on World Wide Web pages, usually called a “gif” because .gif is the filename extension. These files use loss-less compression and can have 256 colors. JPEG and GIF are commonly used for images on the Web; JPEG is considered best for photos and GIF for other graphic images.

Gross Exposures – Each time a Web server sends a file to a browser, it is recorded in the server log file as a “hit.” Hits are generated for every element of a requested page (including graphics, text and interactive items). If a user views a page containing two graphics, three hits will be recorded: one for the page itself and one for each graphic. Webmasters use hits to measure their server’s workload. Because page designs vary greatly, hits are a poor guide for traffic measurement.

H

Hit – Each time a Web server sends a file to a browser, it is recorded in the server log file as a “hit.” Hits are generated for every element of a requested page (including graphics, text and interactive items). If a page containing two graphics is viewed by a user, three hits will be recorded – one for the page itself and one for each graphic. Webmasters use hits to measure their server’s workload. Because page designs vary greatly, hits are a poor guide for traffic measurement.

Holdback – A portion of the revenue from a merchant’s credit card transactions, held in reserve by the merchant account provider to cover possible disputed charges, chargeback fees, and other expenses. After a predetermined time, holdbacks are turned over to the merchant. Note: Merchant account providers almost never pay interest on holdbacks.

Hot Linking – The function of linking between two applications where as the changes in one will effect the other. Such as linking an image from another application (or server) to view in an application in different location. The process of linking two seperate applications.

Home Page – The main page of a website. The home page provides visitors with an overview and links to the rest of the site. It often contains or links to a Table of Contents for the site.

Host – An Internet host used to be a single machine connected to the Internet (which meant it had a unique IP address). As a host, it made certain services available to other machines on the network. However virtual hosting has now meant that one physical host can now be actually many virtual hosts.

HQX – BinHex (filename extension — Macintosh).

Htaccess – password authentication scheme for websites on apache servers.

HTML – Stands for Hyper Text Markup Language, a coding language used to make hypertext documents for use on the Web. HTML resembles old-fashioned typesetting code, where a block of text is surrounded by codes that indicate how it should appear. HTML allows text to be “linked” to another file on the Internet.

HTTP – Stands for Hyper Text Transfer Protocol, a standard method of transferring data between a Web server and a Web browser.

Hyperlink – A link in a HTML document that leads to another World Wide website, or another place within the same document. Hyperlinks are usually underlined or shown in a different color from the surrounding text. Sometimes hyperlinks are pictures.

Hypertext – Any text that causes another document to be retrieved and displayed when clicked on.

I

IANA – Internet Assigned Numbers Authority. http://www.iana.org

IAP – Short for Internet Access Provider, a company that provides access to the Internet. IAPs generally provide dial-up access through a modem and PPP connection, though companies that offer Internet access with other devices, such as cable modems or wireless connections, could also be considered IAPs. The terms IAPs and ISP (Internet Service Providers) are often used interchangeably, though some people consider IAPs to be a subset of ISPs. Whereas IAPs offer only Internet access, ISPs may provide additional services, such as leased lines (T-1 or T-3) and Web development. In contrast to both IAPs and ISPs, online services provide their own proprietary content in addition to Internet access.

ICANN – The Internet Corporation for Assigned Names and Numbers (ICANN located at http://www.icann.org) is the governing body for domain names and also operates the root servers. They determine what TLDs are available, how domain name disputes are handled, and other policies regarding the domain name system.

ICQ – A program which allows chat and the exchange of other types of information, plus there are add-on programs for “telephone” conversations. “ICQ” is said to derive from “I seek you” (say it aloud if you don’t get it). A good way to find out if your friends are online and want to chat is for all to download and install ICQ.

IM – Instant messaging (sometimes called IM or IMing) is the ability to easily see whether a chosen friend or co-worker is connected to the Internet and, if they are, to exchange messages with them. Instant messaging differs from ordinary e-mail in the immediacy of the message exchange and also makes a continued exchange simpler than sending e-mail back and forth. Most exchanges are text-only. However, some services allow attachments. Independent Service Organization – A firm or organization that offers to process online credit card transactions, usually in exchange for transaction fees or a percentage of sales. Merchants must generally establish a merchant account before contracting for ISO services, although some ISOs claim not to require separate merchant accounts. See also factoring.

Internet Service Provider (ISP)- A firm that provides access to the Internet, including Web browsing and email. ISPs often offer connections that can be accessed by dialing a telephone number through your computer’s modem.

Internet – A global network connecting millions of computers. As of 1999, the Internet has more than 200 million users worldwide, and that number is growing rapidly. More than 100 countries are linked into exchanges of data, news and opinions. Unlike online services, which are centrally controlled, the Internet is decentralized by design. Each Internet computer, called a host, is independent. Its operators can choose which Internet services to use and which local services to make available to the global Internet community. Remarkably, this anarchy by design works exceedingly well. There are a variety of ways to access the Internet. Most online services, such as America Online, offer access to some Internet services. It is also possible to gain access through a commercial Internet Service Provider (ISP).

Intranet – A local area network which may not be connected to the Internet, but which has some similar functions. Some organizations setup World Wide Web servers on their own internal networks so employees have access to the organization’s Web documents.

IP Address – Internet Protocol address. Every system connected to the Internet has a unique IP address, which consists of a number in the format A.B.C.D, where each of the four sections is a decimal number from 0 to 255. Most people use Domain Names instead, and the network and the Domain Name Servers handle the resolution between Domain Names and IP addresses. With virtual hosting, a single machine can act like multiple machines (with multiple domain names and IP addresses).

IP – Internet Protocol. The IP part of TCP/IP; the protocol that is used to route a data packet from its source to its destination over the Internet.

IRC – Internet Relay Chat is a worldwide network of people talking to each other in real time. These chat rooms typically focus on specific topics, issues or commonality.

ISDN – Integrated Services Digital Network is a digital network that moves up to 128,000 bits-per-second over a regular phone line at nearly the same cost as a normal phone call.

ISP – Internet Service Provider is your connection to the Internet. You use an ISP to connect onto the Internet every time you log on. See also IAP. Issuing Bank – The bank that maintains the consumer’s credit card account and must pay out to the merchant’s account in a credit card purchase. The issuing bank then bills the customer for the debt.

J

Javascript – JavaScript is an interpreted programming or script language from Netscape. In general, script languages are easier and faster to code in than the more structured and compiler languages such as C and C++. Script languages generally take longer to process than compiled languages, but are very useful for shorter programs. JavaScript is used in Web site development to do such things as: Automatically change a formatted date on a Web page (see our “Today” page), cause a linked-to page to appear in a popup window (see our “Make a WordPop!” page), cause text or a graphic image to change during a mouse rollover.

Jpeg – (also jpg) – a graphic image created by choosing from a range of compression qualities (actually, from one of a suite of compression algorithm ). When you create a JPEG or convert an image from another format to a JPEG, you are asked to specify the quality of image you want. Since the highest quality results in the largest file, you can make a trade-off between image quality and file size. Formally, the JPEG file format is ISO standard 10918. The JPEG scheme includes 29 distinct coding processes although a JPEG implementor may not use them all. JPEG is an acronym for Joint Photographic Experts Group, the committee that established the baseline algorithms.

L

Link – A link will transport you from one Internet site to another with just a click of your mouse. Links can be text or graphic and are recognizable once you know what to look for. Text links usually will be underlined and often a different color than the rest of the text on your screen. A graphic link usually has a frame around it.

Listserv – The most widespread of mail lists. Listervs started on BITNET and are now common on the Internet.

Local – In networks, local refers to files, devices, and other resources at your workstation. Resources located at other nodes on the networks are remote.

Log File – A file created by a web or proxy server that contains all of the access information regarding the activity on that server.

M

Mailbox quotas – The amount of space we allot for each user to be able to use. This amount is currently set at 15MB.

Mail Exchange Record – (MX Record) A DNS resource record type indicating which host can handle electronic mail for a particular domain.

Mail order / telephone order discount rate – The discount rate charged by the merchant account provider for credit card transaction in which the actual credit card was not available to the merchant. MOTO discount rates are generally higher than swipe discount rates to account for the increased chance of fraud or nonpayment.

Mailing List – Electronic discussion groups that link a relatively small group of people together by common interests and that are distributed throughout the Internet via its global email system. If you belong to a mailing list, you receive every message that is posted to that list.

Mail server username – username@yourdomain.com

MCSE – Microsoft Certified Systems Engineer.

Merchant Account Provider – A bank or other institution that hosts merchant accounts and processes online credit card transactions. The term is also often used broadly to include any credit card processing service, including ISOs.

Merchant Account – An account established by a merchant to receive the proceeds of credit card purchases. By establishing a merchant account, the merchant bank agrees to pay the merchant for valid credit card purchases in exchange for the right to collect on the debt owed by the consumer.

Merchant Bank – A bank that holds a merchant account. After a consumer buys a product using a credit card, the merchant bank places funds into a merchant account in exchange for the right to collect on the debt owed by a consumer. See also merchant account provider.

Merchant Services Provider – A bank, ISO, or other firm that provides services for processing financial transactions, usually credit card sales. Many MSPs provide merchant accounts, while others require their clients to establish merchant accounts on their own. Some MSPs claim that they do not require merchant accounts; this may indicate factoring, which is illegal in many areas. See also holdback.

Monthly Minimum – The minimum amount in fees and percentages charged by a merchant services provider in a given month. If account activity does not generate the monthly minimum, the account holder must make up the difference.

MX/A DNS records – Changed when creating a POP account on DN, the ‘A’ record identifies the users mail server for their domain (i.e. mail.mydomain.com). The ‘MX’ (mail exchange) record identifies where to send the email, in this case ‘pop.directnic.com.’

N

Nameserver – A name server is a computer that contains a list of domain names and the associated IP addresses. When a domain name is typed in a web browser, the nameserver associates that with the IP address and the correct web site opens in the web browser.

Navigation Bar (Navbar) – A Navbar is just a kind of “Table of Contents” of a site that stays available so the reader can move easily from place to place.

Netiquette – Contraction of Internet etiquette, the etiquette guidelines for posting messages to online services, and particularly Internet newsgroups. Netiquette covers not only rules to maintain civility in discussions (i.e., avoiding flames), but also special guidelines unique to the electronic nature of forum messages. For example, netiquette advises users to use simple formats because complex formatting may not appear correctly for all readers. In most cases, netiquette is enforced by fellow users who will vociferously object if you break a rule of netiquette. See: http://www.albion.com/netiquette

Newsgroup – A discussion group on Usenet devoted to talking about a specific topic. Currently, there are over 45,000 newsgroups. Also called USENET, they are groups that often have nothing to do with news. Newsgroups are ongoing discussion groups among people on the Internet who share a mutual interest.

NS record – nameserver record.

Nslookup – Nslookup is a program to query Internet domain name servers. Nslookup has two modes: interactive and non-interactive. Interactive mode allows

O

Operation systems (or OS) – The main control program of a computer that schedules tasks, manages storage, and handles communication with peripherals. Its main part, called the kernel, is always present. The operating system presents a basic user interface when no applications are open, and all applications must communicate with the operating system.

OS- see Operating System.

OSI – (Open Systems Interconnection, or Open Systems Interconnect). A model developed by ISO (International Organization for Standardization) to allow computer systems made by different vendors to communicate with each other. The goal of OSI is to create a worldwide open systems networking environment where all systems can interconnect. Most communications protocols today are based on the OSI model. OSI defines a framework for communications which has seven layers: 1) the physical layer, 2) the data link layer, 3) the network layer, 4) the transport layer, 5) the session layer, 6) the presentation layer, and 7) the application layer. Control is passed from one layer to the next. A communication begins with the application layer on one end (for example, a user opening an application and typing a request). The communication is passed through each of the seven layers down to the physical layer (which is the actual transmission of bits). On the receiving end, control passes back up the hierarchy.

P

Page – All websites are a collection of electronic “pages.” Each Web page is a document formatted in HTML (Hypertext Markup Language) that contains text, images or media objects, such as RealAudio player files, QuickTime videos or Java applets. The “home page” is typically a visitor’s first point of entry and features a site index. Pages can be static or dynamically generated. All frames and frame parent documents are counted as pages.

Page Views – Number of times a user requests a page that may contain a particular ad. Indicative of the number of times an ad was potentially seen, or “gross impressions.” Page views may overstate ad impressions if users choose to turn off graphics (often done to speed browsing).

Party – A Complainant or a Respondent.

Perl – Perl is a general-purpose programming language invented in 1987 by Larry Wall. It has become the language of choice for World Wide Web development, text processing, Internet services, mail filtering, graphical programming, systems administration, and every other task requiring portable and easily developed solutions.

Personal Identification Number (PIN): An alphanumeric or numeric code used to verify the identity of an individual attempting to use a credit card, debit card, or other account

PHP – PHP is a tool that let you create dynamic web pages. PHP-enabled web pages are treated just like regular HTML pages and you can create and edit them the same way you normally create regular HTML pages.

Ping – Packet Internet Groper. A program used to test whether a particular network destination is online, by sending an Internet control message protocol (ICMP) echo request and waiting for a response. (Also called packet Internet gopher).

Platform – The operating system (i.e. Windows 95, Windows NT, etc.) used by a visitor to your website.

Png – Portable Network Graphics bitmap (filename extension).

POP3 – Post Office Protocol, version 3. The central repository where electronic mail is stored before the recipient downloads it; analogous to a U.S. Mail post office box where mail is stored waiting to be picked up. When you use your email program to check for new messages, this is similar to visiting the post office and using a key to check a P.O. box.

Portal – Usually used as a marketing term to described a website that is or is intended to be the first place people see when using the Web. Typically a “Portal site” has a catalog of websites, a search engine, or both. A Portal site may also offer email and other service to entice people to use that site as their main “point of entry” (hence “portal”) to the Web.

Posting – Sending an article to a newsgroup, listserv, etc. Online, you send email messages to people and posts to lists.

Preregistration – The theoretical process of paying for registration of new TLD before it becomes available, not necessarily guaranteeing that domain’s registration.

Primary email – The primary email address for an account. The price for a primary email is currently set at $10 per year.

Propagation – When a domain name is registered and has name servers set for it, the information that tells other computers about that domain name is distributed throughout the internet so that all computers on the internet can find the new domain. This process is called propagation and can take several days once a domain name is registered.

Protocol – An established method of exchanging data over the Internet.

Python – An interpreted, object-oriented programming language developed by Guido van Rossum. The name comes from one of van Rossum’s favorite television shows, Monty Python’s Flying Circus. Python is very portable since Python interpreters are available for most operating system platforms. Although Python is copyrighted, the source code is freely available, and unlike GNU software, it can be commercially re-sold.

Q

Qmail – The email POP3/SMTP system used by Intercosmos.

R

Real Time Processing – The verification and processing of credit card transactions immediately following a purchase. Real-time verification on the Web usually takes less than five minutes. Real-time verification is especially important for websites that sell products and services that consumers expect immediately, such as memberships to the site or software downloads.

Redirection – any traffic going to a domain name will be redirected to a different URL chosen by the user, for example, a pre-existing website on another server.

Referrer – URL of an HTML page that refers to your website.

Registrant – The person that is trying to register a domain for use through a registrar.

Registrar – A company or organization that registers domain names for individuals and organizations.

Registration – To enroll for the use of, the act of registering.

Registration Agreement – Means the agreement between a Registrar and a domain-name holder.

Remote – In networks, remote refers to files, devices, and other resources that are not connected directly to your workstation. Resources at your workstation are considered local.

Remote Access – The ability to log onto a network from a distant location. Generally, this implies a computer, a modem, and some remote access software to connect to the network. Whereas remote control refers to taking control of another computer, remote access means that the remote computer actually becomes a full-fledged host on the network. The remote access software dials in directly to the network server. The only difference between a remote host and workstations connected directly to the network is slower data transfer speeds.

Reserving domains – see pre-registration.

Return Code – The return status of the request that specifies whether the transfer was successful and why. Possible “Success” codes are: 200 = Success – OK 201 = Success – Created 202 = Success – Accepted 203 = Success – Partial Information 204 = Success – No Response 300 = Success – Redirected 301 = Success – Moved 302 = Success – Found 303 = Success – New Method 304 = Success – Not Modified

Possible “Failed” codes are – 400 = Failed – Bad Request 401 = Failed – Unauthorized 402 = Failed – Payment Required 403 = Failed – Forbidden 404 = Failed – Not Found 500 = Failed – Internal Error 501 = Failed – Not Implemented 502 = Failed – Overloaded Temporarily 503 = Failed – Gateway Timeout

Roll over – To carry over a previous contract to the new registrar. To keep any time that was previously registered with a new company.

Router – A device that finds the best path for a data packet to be sent from one network to another. A router stores and forwards electronic messages between networks, first determining all possible paths to the destination address and then picking the most expedient route, based on the traffic load and the number of hops. A router works at the network layer (layer 3 of the OSI model); a bridge works at the data link layer (layer 2). A router does more processing than a bridge does. A router can be hardware or a combination of hardware and software. An example of what a router address looks like: gbr4-p80.attga.ip.att.net or gbr6-p52.attga.ip.att.net.

S

Sales Draft – A receipt that is sent to the customer.

Search Engine – A Search Engine is a site that serves as an index to other sites on the Web. Some of the more popular search engines are “Starting Point,” “Yahoo” and “Lycos.” Search engines are relatively easy to use. Normally, they contain references to common subject areas that you can point-and-click to connect to other links that connect to other links, and so on. They also give you the opportunity to type in key words (by themselves, or in combination) to begin a search.

Secure Electronic Transaction (SET) – A system for encrypting e-commerce transactions, such as online credit card purchases. Developed by Visa, MasterCard, Microsoft, and several major banks, SET combines 1,024-bit encryption with digital certificates to ensure security. SET is still in development. Secure Server – A Web server or other computer connected to the Internet that is capable of establishing encrypted communication with clients, generally using SSL or SET.

Secure Socket Layer (SSL)- A system for encrypting data sent over the Internet, including e-commerce transactions and passwords. With SSL, client and server computers exchange public keys, allowing them to encode and decode their communication.

Security – Ensuring that private information remains private in an atmosphere where all other information is free. Security also means that viruses are prevented from infecting people’s systems.

Server – A Server is a machine that makes services available on a network to client program. A file server makes files available. A WAIS server makes full-text information available through the WAIS protocol (although WAIS uses the term source interchangeably with server).

Server Error – An error occurring at the server. Web server errors have codes in the 500 ranges.

Server ID – See Web Server Certificate.

Settlement – The process of sending the merchants batch to the network for processing and payment.

Shopping Cart – A software package that runs as part of a website to collect and record purchasing decisions by a visitor. Shopping cart programs are stored on Web servers.

Shtml – HTML file with embedded server-side includes (SSIs) (filename extension).

SIT – Stuffit compressed file.

SMTP – Simple Mail Transfer Protocol, used between servers to relay mail.

SOA record – start of authority record.

Spam (or Spamming) – The practice of sending copies of a message to many different newsgroups, with no regard to whether the subject matter is appropriate; or sending the same message by email to large numbers of people indiscriminately. Sometimes spams are advertisements. Spamming is considered poor netiquette and can have legal repercussions because it not only wastes everyone’s time, but also costs money. The sender of the messages does not pay the cost; the sites of the recipient and others on the route pay it. Spamming often results in angry email replies from the tar

Spiders – Spiders and Robots (or “bots”) are simply automated programs that explore the Web, looking for information. The most common kinds of Spiders are the ones that collect Web addresses for the Search Engines to catalogue. SQL (Structured Query Language) – A specialized programming language for sending queries to databases. Most industrial-strength and many smaller database applications can be addressed using SQL. Each specific application will have its own version of SQL implementing features unique to that application, but all SQL-capable databases support a common subset of SQL.

SSL (Secure Sockets Layer) – A protocol from Netscape Communications Corporation, which is designed to provide secure communications on the Internet. It has become the universal standard on the Web for authenticating websites to Web browser users, and for encrypting communications between browser users and webservers. SSL is built into all major browsers and Web servers, which means it doesn’t matter where the protocol is implemented, the same implementation is operated. After a digital certificate, or Server ID, is installed, SSL capabilities are then enabled. Features of a secure site: 1) The URL changes from http:// to https:// . 2) A lock symbol appears in the lower left-hand status bar in Netscape Navigator. 3) A lock symbol appears in the lower right-hand status bar in Internet Explorer.

Static IP address – A static or dedicated IP Address is a type of account from an ISP where your computer(s) are assigned the same IP Address at all times. While this used to be a requirement for web-site serving, it is usually used today for security purposes.

Sticky – “Sticky” sites are those where the visitors stay for an extended period of time. For instance, a banking site that offers a financial calculator is stickier than one that doesn’t because visitors do not have to leave to find a resource they need.

Suffix (Domain Name) – The three-digit suffix of a domain can be used to identify the type of organization. Possible “Suffixes” are: .com, Commercial; .edu, Educational; .int, International; .gov, Government; .mil, Military; .net, Network and .org, Organization.

Surfer – User or Visitor to a website.

T

T-1 – A high-speed (1.54 megabits/second) network connection.

T-3 – A high speed (45 megabits/second) Internet connection. tar.gz – Combined filename extension for a file that has been archived using tar and then gzipped.

TCL – Tool Command Language (TCL). Developed by John Ousterhout, TCL is an interpreted programming language that is used for developing CGI scripts and prototyping applications.

TCP – Transmission Control Protocol works with IP to ensure that packets travel safely on the Internet.

Tgz – Another name for .tar.z and .tar.gz.

TLDs – A top level domain (TLD) is the very last part of an FQDN and helps to group domains by purpose and/or region. It can be either a generic TLD like ‘.edu’ or a country code TLD like ‘.uk’.

TOS – Terms Of Service. A stated list of the terms that must be agreed on by a user of a particular service; the terms under which a service provider provides a particular service.

Traceroute – The Internet is a large and complex aggregation of network hardware, connected together by gate ways. Tracking the route one’s packets follow (or finding the miscreant gateway that’s discarding your packets) can be difficult. Traceroute utilizes the IP protocol `time to live’ field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway along the path to some host.

Transaction Fee – A charge for each credit card transaction, collected by the merchant account provider or ISO. Transaction fees usually fall between $0.20 and $1 (U.S.).

Transfer – To have a domain moved from one registrar to another registrar so that the new registrar houses the domain name.

TTL – Time to Live. Part of a Dig result that lists the amount of time left before the nameserver expires a cached record.

U

Unique Users – The number of different individuals who visit a site within a specific time period. To identify unique users, websites rely on some form of user registration or identification system.

UNIX – A computer operating system (the basic software running on a computer, underneath things such as databases and word processors). UNIX can be used by many people at once (”multi-user”) and has TCP/IP built-in. UNIX is the most prevalent operating system for Internet servers.

Uniform Domain Name Dispute Resolution Policy – 1. This policy is now in effect. See http://www.icann.org/udrp/udrp-schedule.htm for the implementation schedule. 2. This policy has been adopted by all accredited domain-name registrars for domain names ending in .com, .net, and .org. It has also been adopted by certain managers of country-code top-level domains (e.g., .nu, .tv, .ws). 3. The policy is between the registrar (or other registration authority in the case of a country-code top-level domain) and its customer (the domain-name holder or registrant). Thus, the policy uses “we” and “our” to refer to the registrar and it uses “you” and “your” to refer to the domain-name holder.

URL – Universal Resource Locator is a means of identifying an exact location on the Internet. For example, http://www.directNIC.com/search/ is the URL which defines the use of HTTP to access the Web page default.htm in the /html/info/ directory on the WebTrends Corporation website. As the previous example shows, a URL is comprised of four parts: Protocol Type (HTTP), Machine Name (webtrends.com), Directory Path (/html/info/), and File Name (default.htm).

User Agent – The fields in an extended Web server log file indicating the browser and the platform used by a visitor.

User mail server – mail.yourdomain.com

User Session – A session of activity (all hits) for one user of a website. A unique user is determined by the IP address or cookie. By default, a user session is terminated when a user is inactive for more than 30 minutes.

V

Valid Hits – A further refinement of hits, valid hits are hits that deliver all information to a user. Excludes hits such as redirects, error messages and computer-generated hits.

View Page – Each request for a particular web page that displays an ad. Also referred to as an impression.

Virtual Domain – A virtual domain is an extension off of your domain name. Once you have purchased “yourname.com” you can create branches off of this name, such as “anything.yourname.com”. These are called virtual domains.

Visits – A sequence of requests made by one user at one site. If a visitor does not request any new information for a period of time, known as the “time-out” period, then the next request by the visitor is considered a new visit. To enable comparisons among sites, I/PRO uses a 30-minute time-out.

W

Web browser – a program such as Netscape, Internet Explorer, and others that are used to view pages on the World Wide Web.

Web server – a server on the Internet that holds World Wide Web documents and makes them available for viewing by remote browsers. Examples: Apache, Microsoft IIS, IBM iPlanet, Cern HTTPD.

Web Server Certificate – or Server ID, is a digital document containing unique codes that identify the holder of the certificate to the person accessing the site. A Web Server Certificate is issued by a trusted third party called a Certificate of Authority (CA). CAs must audit the identity of the people or organizations to whom they issue certificates. Once the CA establishes an organization’s identity, it issues a certificate that contains the organization’s public key and signs it with the CA’s private key. SSL certificates hold information about Web-servers. They contain information about the owners of the certificates, the server to which the certificate was sold, when it was sold and when it expires. Visitors to your site will be able to submit credit card numbers and other personal information to your site, with assurance that they are really doing business with you, not an impostor, and that the information that they are sending to you can not be intercepted or decrypted by anyone other than the intended recipient.

Webmaster – A Webmaster is someone who keeps a website running and available to its readers. A website designer is someone who can design effective websites. The two may be the same person, but usually aren’t. They certainly need to be aware of the other’s role. Both need to be able to meet your needs as the client for the spot. A Webmaster is the person in charge of administrating a World Wide website.

Whois – An Internet directory service that can be used to find information about domain names users registered on a server, or other information about the network.

WWW – The common abbreviation for “World Wide Web.” The WWW is what most people refer to as “the Internet,” but it is really one a part of the Internet. The World Wide Web is commonly also called “The Web.”

Z

ZIP – To compress a file using PKZIP, ZipIt, gzip, or other compatible archiver.

→ No Comments Tags: Terms


Linux Cheat Sheet

May 28th, 2009 by EZ linux · No Comments

We are re-doing this page…

Arrow Up: scrolls and edits the command history, press enter to activate.
Shift+pgup: scrolls terminal output up
Shift+pgdown: scrolls terminal output down
CTRL-ALT+DEL reboots the system
Shutdown -h now turns the system off
CTRL C kills the current process
CTRL S Stops the tranfer to the terminal
CTRL Q Resumes the transfer to the terminal
CTRL Z Puts the current process in the background.
Middle Mouse Button Pastes the text that is currently somewhere else.

PWD Shows the current directory
HOSTNAME Shows the host name of the system you are on
WHOAMI Displays your login name
DATE Displays what your machine thinks the date is
WHO Shows who is logged into the machine
RWHO-A Shows all users logged into the server network
FINGER <user name> Shows info on chosen user
LAST Show the last users logged into the machine
UPTIME Shows the systems uptime
PS Shows the current user processes
PS -A Shows all process on the system
UNAME -A Displays all info on your host.
FREE Shows the free memory in KB
DF -H Shows the disk space details
cat/proc/cpuinfo Shows the CPU information
cat/proc/filesystems Shows the file system information in use
cat/etc/printcap Shows if any printers are hooked up
Lsmod Shows the kernel modules loaded
setimore Shows the current user environment
echo $PATH Shows the content on the environment variable path
dmesg Prints the boot messages

Basic Actions

[command] –help – gives syntax for using that command
man [command] – brings up the manual page for the command, if it exists
man [command] > file.txt – dumps the manual page(s) for the command into ‘file.txt’
whatis [command] – gives a short description of the command.
help – gives a list of commands (GNU Bash).
help [command] – gives extra information on the commands listed above. Viewing/editing/creating a text file

vi [filename] – opens VI text editor, if the file doesn’t exist, it’ll be created on saving.
(when inside vi)
- using ‘i’ inserts
- pressing ‘escape’ and then ‘:’ goes back to command mode.
- ‘/searchstring’ searchs for ’searchstring’ using regular expressions.
- ‘:’ followed by ‘w’ writes
- ‘:’ followed by ‘qw’ writes then quits
- ‘:’ followed by ‘q’ quits.
- ‘:’ followed by ‘q!’ quits regardless of whether changes are made.
- ‘:’ followed by ‘z’ undos.
pico [filename] – launches the PICO editor for the filename.
more [filename] – shows one screen’s worth of the file at a time.
less [filename] – similar to more
head [filename] – Shows the first 10 lines of file, or use -n
tail [filename] – Shows the last 10 lines of file, or use -n
cat [filename] | more – works like more, cat concats 2 strings General/System commands

su [user] – changes the login to ‘user’, or to the root if no ‘user’ is given.
date – shows the system date
whoami – tells you who you’re logged in as
uptime – how long the computer has been running, plus other details
w – shows who’s logged on, what they’re doing.
df – how much disk space is left.
du – disk usage by your login, it can also total up directories.
uname -mrs – userful info about the system
uname -a – all details about the system Desktop / X server + client

Switchdesk {manager – gnome, Enlightenment, etc} – Switches your desktop What’s running

ps – what’s running.
ps ax – shows all processes
top – sort of interactive version of ps.
kill [pid] – terminates the named process, which can be name or number or other options.
killall -HUP [command name] – kill a process, running the command specified, by name.
killall -9 [command] – similar to the above
xkill – kills a frozen application in X (gnome,kde etc. desktops), you just click on the frozen app.

File system

ls -la – list all files/directories
dir – simple form of ls
cd [dir] – change directory
cd ~ – go back to the home directory
cdup – similar to using “cd ..”, go up one directory.
pwd – print which directory you’re in.
./[filename] – run the file if it’s executable and in the current directory
rm [filename] – delete a file
rm -R [directory] – delete a directory
mv [oldfilename] [newfilename] – renames the file (or directory)
cp [filename-source] [filename-destination] – copy the file from one place to another
cp -R [dir-source] [dir-destination] – copy a directory an all its subdirectories
mkdir [name] – makes a directory.
cat [sourcefile] >> [destinationfile] – appends sourcefile to the end of destinationfile
df – how much disk space is available, more options available.

- zipping/taring
tar -cvzf mytar.tar.gz sourcefilesordir – creates a new tar file, verbose options on, runs it through gnuzip,f is the filename
tar -xvf mytar.tar.gz destination – extracts a tar file (this example is compressed with gzip), verbosely, f is the filename
gzip fileordir – compresses a file with gzip.
gunzip file.gz – decompresses a file with gzip.
NB gzip only compresses files, it doesn’t collect them into a single file like a tarball does.

Searching

locate [filename] – searches the system using an indexed database of files. use updatedb to update the file database
locate [filename] | sort – sorts the files alphabetically
whereis [filename] – locates an application, such as ‘whereis bash’
find [filename] – searches the filesystem as with locate, but without a database so its slower.
find /directory -atime +30 -print – searches for files not used in the past 30 days. Setting up links

ln -s target linkname – creates a symbolic link, like a shortcut to the target directory or filename.
ln target linkname – creates the default hard link. Deleting this will delete the targetted file or directory. Network commands

dig domainname – retrieves information about a domain, such as name servers, mx records
whois domainname – whois info on a domain
finger user – gives info about a user, their group status, but can also be used over a network
netstat -ape – lots of info about whos connected to your machine, what processes are doing what with sockets Piping

Piping to another command is straight forward enough:

locate filename | grep /usr/local > searchresults.txt – searches for filename, runs the results through grep to filter everything without /usr/local in it, and then outputs the results to searchresults.txt

| runs one application via another, and can be used multiple times e.g. cat /usr/group | more | grep root | sort
> creates a new file if once doesn’t already exist, overwrites the contents of the file if it does exist
>> appends to the end of the file, and creates the file if one doesn’t exist.
< sends everything after this to the application, e.g. ./mysql -u bob -p databasename < mysqldump.sql Permissions and directory listing format

groups [username] – shows what groups the user belongs to
id [username] – shows extended information about a user.
finger [user] – give details about a user.
passwd [user] – changes the password for a user, or without the user argument, changes your password.
chsh [user] – changes the shell for a user.
userdel [user] – removes a user from the system, use -r to remove their home directory too.
newgrp [group id] – log into a new group.
useradd -d /home/groupname -g groupname – add a new user with the d being the homedirectory, g the default group they belong to.
groupadd [groupname] – adds a group

Take a look at the users/groups on the system with:

cat /etc/passwd | sort
cat /etc/group | sort

The stuff below is in the man pages also.
The format of passwd is:
username
password denoted by x (use cat /etc/shadow | sort to list the shadow password file)
uid – user identifier number
gid – group identifier number
misc information such as real name
users home directory
shell for the user

The format of group is:
name of group
password denoted by x (use cat /etc/gshadow | sort to list the shadow group file)
gid – group identifier number
list of additional users assigned to the group

Break down of permissions in a directory listing:
-rw-r–r– 1 mainuser devel 9054 Dec 28 12:42 index.html

The first character indicates whether it is a directory or file (d for directory).
After that, the next 3 (rw-) are owner permissions.
The following 3 (r–) are group permissions
The following 3(r–) are permissions for other users.

After that reads the number of files inside the directory if it’s a directory (which it isn’t so it’s 1) this can also be links to the file, the owner of the file, the group the file belongs to, size in bytes, date and time and then the filename.

Chmod and Chown
Owner,group and other permissions can be r,w,x. Translated into their decimal equivalents (actually octal but…)
owner – read=400,write=200,execute=100
group – read=40,write=20,execute=10
other – read=4,write=2,execute=1

So add them up and you’ve got your user permissions for chmoding:
chmod [mode] fileordirectory – changes the permissions on a file or directory. use -r to recursively change a whole directory and its sub directories.

e.g chmod 755 myfile.txt – changes the permissions on the file to 755 which is : owner read,write,execute; group read,execute; other read,execute.

chown [user:group] fileordirectory – changes the user and group ownership of a file or directory. Use -R to recursively change a whole directory and its sub directories.
chgrp [group] fileordirectory – changes the groupownership of a file or directory. Use -R to recursively change a whole directory and its sub directories.

MySQL

mysqldump – Dumps a table,database or all databases to a SQL file. Use the –opt argument for best results e.g.
mysqldump -u username -p –opt database > file.sql
mysql – The mySQL query manager. To import/export a database to or from a SQL try:
mysql -u username -p database < file_to_go_in.sql
mysql -u username -p database > file_to_go_to.sql

Basic Commands

man {command} Type man ls to read the manual for the ls command.
man {command} > {filename} Redirect help to a file to download.
whatis {command} Give short description of command. (Not on RAIN?)
apropos {keyword} Search for all Unix commands that match keyword, eg apropos file. (Not on RAIN?)

List a directory
ls {path} It’s ok to combine attributes, eg ls -laF gets a long listing of all files with types.
ls {path_1} {path_2} List both {path_1} and {path_2}.
ls -l {path} Long listing, with date, size and permisions.
ls -a {path} Show all files, including important .dot files that don’t otherwise show.
ls -F {path} Show type of each file. “/” = directory, “*” = executable.
ls -R {path} Recursive listing, with all subdirs.
ls {path} > {filename} Redirect directory to a file.
ls {path} | more Show listing one screen at a time.
dir {path} Useful alias for DOS people, or use with ncftp.

Change to directory
cd {dirname} There must be a space between.
cd ~ Go back to home directory, useful if you’re lost.
cd .. Go back one directory.
cdup Useful alias, like “cd ..”, or use with ncftp.

Make a new directory
mkdir {dirname}

Remove a directory
rmdir {dirname} Only works if {dirname} is empty.
rm -r {dirname} Remove all files and subdirs. Careful!

Print working directory
pwd Show where you are as full path. Useful if you’re lost or exploring.

Copy a file or directory
cp {file1} {file2}
cp -r {dir1} {dir2} Recursive, copy directory and all subdirs.
cat {newfile} >> {oldfile} Append newfile to end of oldfile.

Move (or rename) a file
mv {oldfile} {newfile} Moving a file and renaming it are the same thing.
mv {oldname} {newname}

Delete a file
rm {filespec} ? and * wildcards work like DOS should. “?” is any character; “*” is any string of characters.
ls {filespec}
rm {filespec}
Good strategy: first list a group to make sure it’s what’s you think…
…then delete it all at once.

Download with zmodem (Use sx with xmodem.)
sz [-a|b] {filename} -a = ascii, -b = binary. Use binary for everything. (It’s the default?)
sz *.zip Handy after downloading with FTP. Go talk to your spouse while it does it’s stuff.

Upload with zmodem (Use rx with xmodem.)
rz [-a|b] (filename} Give rz command in Unix, THEN start upload at home. Works fine with multiple files.

View a text file
more {filename} View file one screen at a time.
less {filename} Like more, with extra features.
cat {filename} View file, but it scrolls.
cat {filename} | more View file one screen at a time.
page {filename} Very handy with ncftp.
pico {filename} Use text editor and don’t save.

Edit a text file.
pico {filename} The same editor PINE uses, so you already know it. vi and emacs are also available.

Create a text file.
cat > {filename} Enter your text (multiple lines with enter are ok) and press control-d to save.
pico {filename} Create some text and save it.

Compare two files
diff {file1} {file2} Show the differences.
sdiff {file1} {file2} Show files side by side.

Other text commands
grep ‘{pattern}’ {file} Find regular expression in file.
sort {file1} > {file2} Sort file1 and save as file2.
sort -o {file} {file}</