Learn How UNIX Multitasks
BlueVoodoo writes "On UNIX systems, each system and end-user task is contained within a process. Learn how to control processes and use a number of commands to peer into your system."
← Back to Stories (view on slashdot.org)
Wow! ps, top, sleep, kill, PIDs? This is some pretty groundbreaking stuff here!
It's a basic primer on UNIX job control. Whee. Not that it isn't well done or useful to the target audience -- but how is this 'news', never mind 'stuff that matters'?
Learn how UNIX stores files. This revolutionary new article will show you how to use ls and cd, and you will walk away with a complete understanding of how files are stored. More magic demystified, indeed!
alias renice 'echo Renice\? You must mean kill -9.; kill -9 \!*'
Ok, I knew /. was getting less and less computer literate.
But if you don't fucking know basic UNIX process control, don't talk about computers, or IT, k?
Seriously, this isnt even Computers 101. This is the bullshit you're expected to know to take Computers 101.
I don't need no instructions to know how to rock!!!!
I get
"ps: Command not found"
What do to? Heeeeeelp.
With several businesses now owning their own Unix mainframes, and with some futurists speculating that hobbyists may one day have full-fledged Unix systems in their basements, a detailed understanding of Unix operation -- including its intricacies, like these "processes" -- becomes increasingly important, even for people not charged with the operation of one of these computational goliaths. I for one plan to study these "processes" carefully.
An in-depth look at Linux filesystems. Specifically, how to make use of the mysterious "ls" command.
There are 0x40000000 types of people: those who understand 32-bit IEEE 754 floating point, and those who don't.
If you think this article is stupid and an insult to your technical prowess, go to the firehose and vote it down.
Is it just me, or is this one of the most random Slashdot articles ever posted? A link to Chapter 8 of an IBM manual on Unix development, really?
Sadly though, there are probably people graduating from "computer science" programs who only know of 'processes' as something you get after pressing Ctrl-Alt-Del and clicking on the "Task Manager" button.
You're vastly overestimating the CS curriculum, at least at my local State uni, if you think that UNIX anything is taught in the 100-level courses.
"Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
it was like taking health ed all over again
That's what I get for R(ing)TFA. :-P
The only redeeming feature about this crap is that it wasn't posted by Roland Piquapaille.
Meh.
I have mod points, but I thought I'd post instead: Look genuises. Not every slashdot reader is a Unix guru. I think this is an excellent article and does a great job explaining some of the core workings of Unix/Linux. I've been fortunate enough to be using Unix since 1981 and I actually enjoyed reading the article. It offers our Windows-centric Slashdot breatheren a nice overview.
In a band? Use WheresTheGig for free.
Did I mistype the URL? No, it does say slashdot.org. Odd... I should go back to bed.
[alk]
Just in case we needed another piece of evidence showing how much IBM has changed over the years...
... seriously, from IBM?
I can't believe I just read the phrase "Headlamps on! To the bat cave!" in an IBM technical publication.
I'm not saying it's bad, in fact the article is a much more amusing read than I thought it was going to be, but
"Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
Alright, alright, everyone's all uppity about how everyone should know process controls and all that stuff but isn't anyone thinking of our highly decorated MCSE brethren? Think of the children!
As a post-lesson extra credit bonus, after learning about ps, top, etc. they can try the commenting command named after the GWBASIC "REM" which stood for remark. The command you want is "sudo rm / -rf" which tells the machine to go into superuser ('cause you're a really super guy) and make remarks with a slash (remember, DOS uses forward slashes, unix uses backslashes) and the last part will note that the remarks you're making are going to be Really Funny!
Now try that for extra credit!
I like the pretty colors they use in their pictures, and the fun wavy lines. Oh! And they didn't color them in! But the SO hates when I get crayon on the monitor... What to do!
Government's view of the economy: If it moves, tax it. If it keeps moving,regulate it. If it stops moving, subsidize it.
Hey, there are editors that (hopefully) get money to do something.
Maybe they should start?
HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
Really, the article is great in explaining your manager how Unix processes work. It's a down-to-earth introductory explanation of processes and has some interesting information (which we all know, because we're all POSIX guru's) for newbie's and junior sysadmins switching to Linux/Unix/AIX
Custom electronics and digital signage for your business: www.evcircuits.com
Specialized tools? Everybody uses these all the time, and I note he didn't mention nice or renice - the ones nobody ever uses. This is not intermediate level stuff, this is beginner stuff. Awk, M4 and sed are intermediate - and they aren't specialized tools either.
Now, will someone tell me how to create a QProcess from the GUI thread of a multi-threaded Qt 4 application without the new process crashing?
And TFA does not even include a link to one of the most important process viewing programs around - lavaps - which shows processes running on your system in a lava-lamp-esque display.
While the article is a bit elementary for most unix users, there are those who are not unix users who might need someday to know this.
How to master the "other half" of the keyboard using the newly discovered SHIFT key.
Cool people integrate the os and web *server.*
"You can view the entire list of processes using ps -a -w -x. (The format and specific flags of the ps command vary from UNIX flavor to UNIX flavor. See the online documentation for your system to find specifics.) -a selects all processes running on a tty device; -x further selects all processes not associated with a tty, which typically includes all the *perpetual system services*, such as the *Apache HTTP server*..."
This is an intuitive way to monitor the processes on your system. It's just "point and click"...I mean "point and shoot."
http://psdoom.sourceforge.net/
--Welcome to the Realm of the Hawke--
Switch your shell to one with auto-completion and go through each letter of the alphabet, hitting tab after each one and then viewing the manual page for each command you don't already know.
If you want to kill all background processes use "kill 0"
Slashdot - UNIX for dummies.
I tried this program:
int main()
{
while(1) fork();
}
but nothing happens?
Haven't we already covered this before? OS X is the unholy union of bastardized BSD and a pirated Mach kernel. As a commie Linux user, I'd rather install Vista rather than a gimped, DRMed UNIX.
and a pirated Mach kernel
Yeah! How dare the guy that developed the Mach kernel go and use it in another of his projects!
Doesn't SCO own the rights to this information?
please include me with your reply
dork@aol.com
I saw slashdot transformed into Digg, with "slashdotit" links everywhere. That was supposed to be a joke, right? Because it's only funny the first time.
Linux users are communists. Here's some proof.
Two parent processes forked each other.
Seriously, if i wanted to see lame articles on linux basics I would go to digg. Can we please stick to the news, people?
The existence of tags like "duh" and "slownewsday" creates a perverse incentive to approve articles like these.
Sometimes I wonder what motivates a troll like this. It's not really annoying, and no one is going to click on an obviously worthless link labeled [goat.cx]. Do they get a thrill just from taking up four lines on someone's computer screen?
shut your f#$%in' traps you bunch of haters. This article does more to help a wide variety of people then your stupid useless comments ever will.
This article tacks hard into an undermining trait around here. It talks about setuid and chmod in terms of privileged escalation for non root users. Most of you useless mouth-filled ranters are just like that; Yea it's a perfect example of you: Some local non authoritative process that are granted a sort of higher privilege by being given a geek audience stage to rant on (slashdot). The first crap you spill out is one of class-ful intelligence. This is 'dumb' we're smart here.
You idiots, you frikkin idiots, you're as stupid as the day you were born. You passed their tests, you 'proved' yourself on their scale, but in terms of making contributions to the only things that matter, one being society, you speak in tongues as part of your elitist naturist anxieties. You keep on telling yourself how good you are, but you're far from good.
When you run into me, stay an inch or two out of kicking distance.
MAN KIND HAS GOT TO KNOW, HIS LIMITATIONS. You idiotic undergrowth.
-the avenger aka john smith.
This article is more in the vein of "Windows to Linux Roadmap", another useful article from this group. This is great stuff if you are interested in weaning non-guru users off of Windows. http://www-128.ibm.com/developerworks/linux/librar y/l-roadmap.html/
And IMO it's certainly more interesting fare than yet another breathtaking article on the implications of taxing linden dollars.
Yes, we all know about ps, sleep, kill, pid, etc. But when I began to frequent Slashdot, I was a technical dunderhead. What made Slashdot so interesting for me is that it oriented me to computer technology and operating systems, and clued me in on where technology was going. It gave me links to websites that, IMO, are generally above average in informational reliability. It still does. This article would have been useful to me several years ago. I am sure that there are people (like my former self) that are virtually computer illiterate and will appreciate any information they can get to improve their competence.
I don't want to see Slashdot dumbed down. But an occasional article that gives reliable information on the basics will not cause Slashdot to slide down that slippery slope. I will begin to worry when I can no longer find news here that is helpful to me. As far as I can tell that is a long way off.
Just keep things RELIABLE and ON TOPIC and I will be happy. I still have much to learn.
"Die Lösung des Rätsels des Lebens in Raum und Zeit liegt außerhalb von Raum und Zeit."
-Ludwig Wittgenstein, Tractatus Logico-Philosophicus
Not exactly the kind of stuff that will make you rich. Fortunately, schools are actually teaching teaching kids to behave like billionaire CEOs
void Dem_response( int sig )
{
raise( SIGQUIT );
}
.
.
.
for ( int i = 0; i MAX_INT; i++ ) signal( i, Dem_response );