You are not logged in.

1

Sunday, October 26th 2003, 5:57pm

A little of everything

I've read a couple of books on Linux. Is there any free webbased documents or other sources of information? Wouldn't be too swelled to spend all your time for you.

Question: How do you format the search entry in find (find startdirectory -name filename) to get rid of all directories you don't have access to, as a regular user, from the find results scrolling up in your cli?

Question:When I use more and press s to scroll one line at a time, it doesn't do it, it does the whole page + a row. My question is why this is. I've checked and double checked if I've been doing it right. Another interesting thing is, that when I search forward with /<pattern> or backwards with ?<pattern>, less shows all hits in the document simultaneously, but should really search in only one direction. Not that I really care, but shouldn't you be able to trust the manual?

Question: I've compared the text display in cat, more and less, and arrived at that cat shows the text as meant to be viewed by the reader. More shows the text with control marks, and less shows all the characters in the file (making sence or not). Can this be said to be true?

Question: According to the manual tail -f should display all the new data in the file as it grows (the last ten lines). When I run tail on "Flickan och näcken.abw" I get highly varying results. Sometimes it displays everything new, sometimes just some, sometimes just control characters, sometimes just parts of control characters. Does tail -f only work on .txt-files?

Question: What is tty? And what is pts? When I enter tty in the console I get an answer like /dev/pts/2. I can figure that dev stands for device (a fysical attacheable/detacheable device/drive), and that 2 stands for console window no.2 in a row But nothing on tty and pts. Have searched the computer for tty and pts, but found nothing comprehensible.

I've read that when you log out of f ex KDE, you don't log out of X. This is said to be able to cause problems fo other users and from processes still taking up space and memory. My question is if this is still true, and if I have to worry, as I start X up at startup. Or is it that when logging out only those processes needed to give you a graphical login is up and running?

ast, when I wrote the source to this document I saved it in .txt-format. But when I opened it at the internet café all my ':s and ":s turned into ?:s. The same seems to be true the other way. It's as if the Win98 doesn't like Linux .txt-files and vice versa. How can I get rid of this annoyance?

Could my problems connecting to my Win98 hd depend on a too old Linux version?I'm running Red Hat Linux 7.2. I'm thinking particularly about if it supports fat 32.

When the 64-bit processors hit the market, will Linux support them?


End of story
Thanks for your help.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Monday, October 27th 2003, 9:48am

Re: A little of everything

Quoted

Original von Tillus

Another interesting thing is, that when I search forward with /<pattern> or backwards with ?<pattern>, less shows all hits in the document simultaneously, but should really search in only one direction. Not that I really care, but shouldn't you be able to trust the manual?

Both highlight every occurrency in the document, but they setup the direction in which 'n' jumps to the next one.

Quoted


Question: According to the manual tail -f should display all the new data in the file as it grows (the last ten lines). When I run tail on "Flickan och näcken.abw" I get highly varying results. Sometimes it displays everything new, sometimes just some, sometimes just control characters, sometimes just parts of control characters. Does tail -f only work on .txt-files?

Maybe tail -f waits for newline characters.
Or the other parts of the file you monitored where non-printable characters.

Quoted


Question: What is tty? And what is pts? When I enter tty in the console I get an answer like /dev/pts/2. I can figure that dev stands for device (a fysical attacheable/detacheable device/drive), and that 2 stands for console window no.2 in a row But nothing on tty and pts. Have searched the computer for tty and pts, but found nothing comprehensible.

I think tty derives from TeleTyper, it means a terminal, something with keyboard and a text screen.
pts is a pseudo terminal, for example a SSH login would create a pseudo terminal to look like a real terminal to local applications, but in fact transfers everything to the remote side of the connection.

Quoted


I've read that when you log out of f ex KDE, you don't log out of X. This is said to be able to cause problems fo other users and from processes still taking up space and memory. My question is if this is still true, and if I have to worry, as I start X up at startup. Or is it that when logging out only those processes needed to give you a graphical login is up and running?

If you run X at startup and use a login manager like KDM, a logout will kill all applications bound to the user's X session but won't affect other users' sessions or system applications.

Quoted


ast, when I wrote the source to this document I saved it in .txt-format. But when I opened it at the internet café all my ':s and ":s turned into ?:s. The same seems to be true the other way. It's as if the Win98 doesn't like Linux .txt-files and vice versa. How can I get rid of this annoyance?

Might be an encoding problem.
Windows is known to use a lot of non-standard encodings and the editor you used might not be able to handle the encoding your linux editor used.

Quoted


Could my problems connecting to my Win98 hd depend on a too old Linux version?I'm running Red Hat Linux 7.2. I'm thinking particularly about if it supports fat 32.

Fat32 should be ok, RH 7.2 isn't that old.

Quoted


When the 64-bit processors hit the market, will Linux support them?

Definitely.
Linux supported those before they where real.
AMD engineers had a Linux port running on their simulators before the first prototype left the lab. :)

Cheers,
_
Qt/KDE Developer
Debian User

3

Monday, October 27th 2003, 1:02pm

Re: A little of everything

Quoted

Original von anda_skoa

Quoted

Original von Tillus


Question: According to the manual tail -f should display all the new data in the file as it grows (the last ten lines). When I run tail on "Flickan och näcken.abw" I get highly varying results. Sometimes it displays everything new, sometimes just some, sometimes just control characters, sometimes just parts of control characters. Does tail -f only work on .txt-files?

Maybe tail -f waits for newline characters.
Or the other parts of the file you monitored where non-printable characters.

One thing that leads to incomplete display of output when using
"tail -f" is when the process *writing* the file lags behind,
for example if the output to the file uses a write buffer.
Then the data only becomes visible when the buffer is flushed.

Doesn't explain control characters though.

4

Monday, October 27th 2003, 2:38pm

Re: A little of everything

Quoted

Original von Tillus


Question: How do you format the search entry in find (find startdirectory -name filename) to get rid of all directories you don't have access to, as a regular user, from the find results scrolling up in your cli?


I do not think that it is easily possible. You can search for file you or your group owns ( -user, -group, -uid, -gid) but there is not something sirectly as show me all files that I can write.)

Quoted


Question: According to the manual tail -f should display all the new data in the file as it grows (the last ten lines). When I run tail on "Flickan och näcken.abw" I get highly varying results. Sometimes it displays everything new, sometimes just some, sometimes just control characters, sometimes just parts of control characters. Does tail -f only work on .txt-files?


You still only get the last lines. So if tail is confronted with 50 new lines, it will still only show the last 10.

(You can try to press an upper case F in less, to have all the lines.)

Also I think that your tail seems to have problems to display the UTF-8 file (AbiWord uses UTF-8 where possible and I suppose that your default encoding is not UTF-8.)

Quoted


Question: What is tty? And what is pts? When I enter tty in the console I get an answer like /dev/pts/2. I can figure that dev stands for device (a fysical attacheable/detacheable device/drive), and that 2 stands for console window no.2 in a row But nothing on tty and pts. Have searched the computer for tty and pts, but found nothing comprehensible.


Tty means Teletype. It comes from the Dark Ages of computing where you had a keyboard and a printer as terminal.

Pts should mean something like pseudo-terminal, screen.

Quoted


ast, when I wrote the source to this document I saved it in .txt-format. But when I opened it at the internet café all my ':s and ":s turned into ?:s. The same seems to be true the other way. It's as if the Win98 doesn't like Linux .txt-files and vice versa. How can I get rid of this annoyance?


:idea: Are you meaning quotes? Yes, this is an encoding problems.
Windows is using CP1252 and you probably ISO-8859-1. While saving in this format (in Kate isn't it?), you seems to have lost the quote.
On the way back, Kate sees only ISO-8859-1 and cannot do anything of the Windows quotes.

So if you are using Kate, load and save with the dialog boxes and select the right encoding ( "CP 1252" .)

Quoted


Could my problems connecting to my Win98 hd depend on a too old Linux version?I'm running Red Hat Linux 7.2. I'm thinking particularly about if it supports fat 32.


VFAT support in Linux is quite old.

Quoted


When the 64-bit processors hit the market, will Linux support them?


SuSE 9.0 works on AMD's.

5

Monday, October 27th 2003, 2:39pm

I forgot: Have a nice day! :)