[SLUG] Re: linux assignment
Matt, A stroke of genius! :) My (Red) hat goes off you you. Regards, Patrick From: Matthew Palmer <[EMAIL PROTECTED]> Wed, 16 Aug 2006 11:30:22 +1000 > On Wed, Aug 16, 2006 at 09:58:07AM +1000, David Herd wrote: I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. You could save yourself even more time if you just gave us the address of your lecturer, that way we could e-mail the answers direct to them, saving yourself the trouble of even having to submit the answers yourself. - Matt -- Registered Linux User 368634 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: slug@slug.org.au
Incorrect Address: We were unable to send you our mortgage refinance offer in the mail. Your address information that you provided on our application is invalid and needs to be updated. If this information is not corrected we will be unable to approve you. We advise you to update this information within 2 days, since our promotional 35% payment reduction ends August 18th. http://addressupdate.puy289.com Buck & Purcell Online Mortgage Brokers Tory Mcelroy Account Creations -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Is there a "which mirror is best" tool?
$quoted_author = "Peter Miller" ; > > It all boils down to this: when I look down a list of mirror sites, is > it possible for me to tell which ones are peers, which ones are cheapest > to access? you can trace to the mirrors and see what it traverses. ie. my ISP is Internode... $ mtr -rc1 ftp.iinet.net.au HOST: merboo Loss% Snt Last Avg Best Wrst StDev 1. ??? 100.0 10.0 0.0 0.0 0.0 0.0 2. loop0.lns1.syd7.internode.on 0.0% 1 42.3 42.3 42.3 42.3 0.0 3. gi0-204.cor1.syd7.internode. 0.0% 1 43.0 43.0 43.0 43.0 0.0 4. gi0-0.bdr1.syd7.agile.on.net 0.0% 1 90.9 90.9 90.9 90.9 0.0 5. pos2-1.bdr2.adl5.internode.o 0.0% 1 91.1 91.1 91.1 91.1 0.0 6. pos3-0.cor1.per1.agile.on.ne 0.0% 1 90.4 90.4 90.4 90.4 0.0 7. fa1-0.cor2.per1.internode.on 0.0% 1 91.1 91.1 91.1 91.1 0.0 8. iinet.ix.waia.asn.au 0.0% 1 90.8 90.8 90.8 90.8 0.0 9. new-ftp.iinet.net.au 0.0% 1 90.5 90.5 90.5 90.5 0.0 so i can tell that my path to iiNet's mirror is via WAIX, but this is outbound only. it may come back via a different path. unfortunately you can't do this once and then assume that will always be the case as routing is dynamic and both outages and technical & admin changes will affect what path your traffic will take. cheers marty -- "Every problem in the world can be fixed with either flowers, or duct tape, or both." [1] - illuzion (David Millington) [1] - http://www.kuro5hin.org/comments/2003/3/15/175156/106/43#43 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: linux assignment
On Wed, Aug 16, 2006 at 12:10:57PM +1000, Martin Pool wrote: > On 16 Aug 2006, Matthew Palmer <[EMAIL PROTECTED]> wrote: > > On Wed, Aug 16, 2006 at 09:58:07AM +1000, David Herd wrote: > > > I'm a computing student who is having troubles with part of my > > > assignment. > > > Can I have any help out there in Linux land. > > > > You could save yourself even more time if you just gave us the address of > > your lecturer, that way we could e-mail the answers direct to them, saving > > yourself the trouble of even having to submit the answers yourself. > > I think he just wanted to make sure this comes up when a future > potential employer searches for his name. Then they'll know he can get > lots of work done by asking random people on the net to do it for him. ;-) Resume: Strengths: utilising the collective knowledge of the internet to complete tasks. Weaknesses: personal knowledge. I suppose it could be worse. - Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Is there a "which mirror is best" tool?
On 16 Aug 2006, Peter Miller <[EMAIL PROTECTED]> wrote: > Many ISPs around Australia (all?) have peering arrangements with other > ISPs (or, rather, groups of ISPs). Traffic between peers does not count > towards my download limit. And I'm guessing they are faster, too, due > to less busy links between peers. > > My ISP is peopleTelecom. Given a host name (or an IP address), can I > tell if it is a peer with my home IP address? PT say who they peer > with, see http://bc.whirlpool.net.au/isp.cfm/People-Telecom/129.html, > PIPE, WAIX and AUSIX, but the connection to a particular host name (or > IP address) is quite tenuous, as each of these peers have multiple > member ISPs who each have multiple customers, many with their own domain > names. > > It all boils down to this: when I look down a list of mirror sites, is > it possible for me to tell which ones are peers, which ones are cheapest > to access? There's 'netselect', but I don't think it understands about monetary cost, just speed. http://packages.debian.org/stable/net/netselect -- Martin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] Re: linux assignment
On 16 Aug 2006, Matthew Palmer <[EMAIL PROTECTED]> wrote: > On Wed, Aug 16, 2006 at 09:58:07AM +1000, David Herd wrote: > > I'm a computing student who is having troubles with part of my assignment. > > Can I have any help out there in Linux land. > > You could save yourself even more time if you just gave us the address of > your lecturer, that way we could e-mail the answers direct to them, saving > yourself the trouble of even having to submit the answers yourself. I think he just wanted to make sure this comes up when a future potential employer searches for his name. Then they'll know he can get lots of work done by asking random people on the net to do it for him. ;-) -- Martin -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
O Plameras wrote: In the context of $cat 1>m1, the output is specified std.out == 1, but at the same time is re-directed to filename "m1'. In the same context, the input is not specified, so the default is used which is "std.input" == 0. That's why $cat 1>m1 means concatenate "std.input" into filename "m1". I understand what both you and Jamie are saying. cat concatenates stdin(0) because a file wasn't specified, in the same way I normally use $ cat >file to create text files. I was emphasising on what 1>m1 actually meant, so there is still nothing wrong with what I said: "1 is actually stdout as mentioned in my previous message. You're redirecting to m1 what cat is outputting to the screen and not what your entering to the keyboard" which is what actually happens _in between_ keyboard entry and writing to the file m1: 1. cat concatenates stdin(0) 2. cat echoes what it read from stdin to stdout(1) 3. bash reads from stdout(1) 4. bash redirects what it read from stdout to file m1 Carlo -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Is there a "which mirror is best" tool?
Many ISPs around Australia (all?) have peering arrangements with other ISPs (or, rather, groups of ISPs). Traffic between peers does not count towards my download limit. And I'm guessing they are faster, too, due to less busy links between peers. My ISP is peopleTelecom. Given a host name (or an IP address), can I tell if it is a peer with my home IP address? PT say who they peer with, see http://bc.whirlpool.net.au/isp.cfm/People-Telecom/129.html, PIPE, WAIX and AUSIX, but the connection to a particular host name (or IP address) is quite tenuous, as each of these peers have multiple member ISPs who each have multiple customers, many with their own domain names. It all boils down to this: when I look down a list of mirror sites, is it possible for me to tell which ones are peers, which ones are cheapest to access? -- Regards Peter Miller <[EMAIL PROTECTED]> /\/\*http://www.canb.auug.org.au/~millerp/ PGP public key ID: 1024D/D0EDB64D fingerprint = AD0A C5DF C426 4F03 5D53 2BDB 18D8 A4E2 D0ED B64D See http://www.keyserver.net or any PGP keyserver for public key. signature.asc Description: This is a digitally signed message part -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] apt questions - apt-cacher and /var/cache/apt/archives
Top posting because I'm re-explaining the problem, and btw, I've searched debian.org and google and can't seem to find the answers to any of these questions: I've found a thing called apt-cacher which looks like a nice simple way to locally cache packages for upgrading other boxes. I've installed it on my main desktop box, which had already been updated to Dapper. I want to seed apt-cacher so that I can use it as a source.list for other upgrades. I think that means that I need to seed it with all the currently installed Dapper packages, but presumably NOT any old packages. so... I'm thinking I should do: #apt-get autoclean -o APT::Clean-Installed=off #cp /var/cache/apt/archives/* /var/cache/apt-cacher/import/ #/usr/share/apt-cacher/apt-cacher-import.pl then change my other boxes sources lists to point to apt-cacher on this box - voila! It sounds easy, but it also looks like a great way to screw up a perfectly good install, so I'm looking for some advice/confirmation :) many thanks... David PS: I notice that apt.conf is now apt.conf.d/ but I can't find any description of how the various files work, or if there is a precedence etc etc. Is there a howto or whatever? On Wed, 2006-08-16 at 10:18 +1000, Peter Hardy wrote: > On Wed, 2006-08-16 at 07:52 +1000, david wrote: > > On Tue, 2006-08-15 at 23:27 +1000, Peter Hardy > > wrote:/usr/share/apt-cacher/apt-cacher-import.pl > > > On Tue, 2006-08-15 at 23:03 +1000, david wrote: > > > > Do the packages in /var/cache/apt/archives represent all the installed > > > > packages on a standard Ubuntu system? > > > > > > Unless you've removed packages, the contents of /var/cache/apt/archives > > > represent every single package ever installed on that system, regardless > > > of whether a package was subsequently removed, or replaced by an updated > > > version. > > > > > > apt-get has a couple of commands for managing the package cache. apt-get > > > clean will clear out the cache completely. autoclean is a little more > > > intelligent. Check the apt-get man page for details. > > > > > > > Thanks for that. From the man page: > > > > autoclean > > > > APT::Clean-Installed will prevent installed packages from being erased > > if it is set to off. > > > > How do I set APT::Clean-Installed? Google hasn't helped :( > > Is this what I'm looking for? > > I'm not sure. What are you looking for? :-) > /usr/share/apt-cacher/apt-cacher-import.pl > That needs to be in apt's config file, /etc/apt/apt.conf . You'd want to > add > APT::Clean-Installed "false"; > > >From the apt.conf manpage: > Clean-Installed >Defaults to on. When turned on the autoclean feature will remove >any packages which can no longer be downloaded from the cache. >If turned off then packages that are locally installed are also >excluded from cleaning - but note that APT provides no direct >means to reinstall them. > > It looks like turning it off will leave you with a cache that slightly > more accurately represents the packages that are installed on a machine > after doing an autoclean. > > But if you're looking to mirror the installed package list on the box > you're upgrading, you'd want to do something like: > > - On the first machine, run dpkg --get-selections > packagelist to get > the status of all installed (and removed) packages. > - Transfer packagelist to the second machine and run dpkg > --set-selections < packagelist to set the desired status of all of those > packages. > - Run apt-get dselect-upgrade , which will then go about > installing/removing things to change desired status to actual status. > > Cheers, > -- > Pete > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
Carlo Sogono wrote: O Plameras wrote: Carlo Sogono wrote: True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. This is not going to produce errors because, $cat 1>m1 means concatenate "std.input" into filename "m1". 1 is actually stdout as mentioned in my previous message. You're redirecting to m1 what cat is outputting to the screen and not what your entering to the keyboard so Yes, 1 == std.out, but note that, $cat 1>m1 is another way of writing $cat >m1 which means concatenate "std.input" into filename "m1". In the context of $cat 1>m1, the output is specified std.out == 1, but at the same time is re-directed to filename "m1'. In the same context, the input is not specified, so the default is used which is "std.input" == 0. That's why $cat 1>m1 means concatenate "std.input" into filename "m1". $ echo testme 1>m1 will put testme to m1, something that didn't come from stdin. Bash by default sends to stdout whatever it reads from stdin so doing $ echo testme >&0 just prints it to the screen anyway. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
This one time, at band camp, Carlo Sogono wrote: >O Plameras wrote: >>Carlo Sogono wrote: >>>True, actually not even man bash. If you execute the command you'll >>>most likely get an error complaining about the file 1, create a file 1 >>>and re-execute it and by using the magic commands ls and cat he'd >>>figure it out without needing the man pages. >>This is not going to produce errors because, >> >>$cat 1>m1 >> >>means concatenate "std.input" into filename "m1". > >1 is actually stdout as mentioned in my previous message. You're >redirecting to m1 what cat is outputting to the screen and not what your Right, but what's cat catting? No files are specified so it reads from stdin; the command does what Oscar said. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Re: linux assignment
On Wed, Aug 16, 2006 at 09:58:07AM +1000, David Herd wrote: > I'm a computing student who is having troubles with part of my assignment. > Can I have any help out there in Linux land. You could save yourself even more time if you just gave us the address of your lecturer, that way we could e-mail the answers direct to them, saving yourself the trouble of even having to submit the answers yourself. - Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
O Plameras wrote: Carlo Sogono wrote: True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. This is not going to produce errors because, $cat 1>m1 means concatenate "std.input" into filename "m1". 1 is actually stdout as mentioned in my previous message. You're redirecting to m1 what cat is outputting to the screen and not what your entering to the keyboard so $ echo testme 1>m1 will put testme to m1, something that didn't come from stdin. Bash by default sends to stdout whatever it reads from stdin so doing $ echo testme >&0 just prints it to the screen anyway. Carlo Do this, $cat 1>m1 The quick brown fox jumps over the lazy dog. ^D And then $cat m1 O Plameras -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
Carlo Sogono wrote: You're right. I had forgotten this method of redirection as I've always used cat >file to do this without specifying the file descriptor for stdin. I guess it would've been more recognisable for me in the form of Hang on, I meant stdout. =P something like `command 2>&1` (stderr > stdout). Thanks for the clarification. Carlo O Plameras wrote: Carlo Sogono wrote: True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. This is not going to produce errors because, $cat 1>m1 means concatenate "std.input" into filename "m1". Do this, $cat 1>m1 The quick brown fox jumps over the lazy dog. ^D And then $cat m1 O Plameras -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
You're right. I had forgotten this method of redirection as I've always used cat >file to do this without specifying the file descriptor for stdin. I guess it would've been more recognisable for me in the form of something like `command 2>&1` (stderr > stdout). Thanks for the clarification. Carlo O Plameras wrote: Carlo Sogono wrote: True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. This is not going to produce errors because, $cat 1>m1 means concatenate "std.input" into filename "m1". Do this, $cat 1>m1 The quick brown fox jumps over the lazy dog. ^D And then $cat m1 O Plameras -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
Carlo Sogono wrote: True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. This is not going to produce errors because, $cat 1>m1 means concatenate "std.input" into filename "m1". Do this, $cat 1>m1 The quick brown fox jumps over the lazy dog. ^D And then $cat m1 O Plameras -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
True, actually not even man bash. If you execute the command you'll most likely get an error complaining about the file 1, create a file 1 and re-execute it and by using the magic commands ls and cat he'd figure it out without needing the man pages. Carlo Norman Gaywood wrote: On Wed, Aug 16, 2006 at 10:15:10AM +1000, Carlo Sogono wrote: it seems you have done absolutely *nothing*, not even try. Questions like what does "cat 1> m1" do takes like less than 2 mins to solve even for someone who have never used cat before (hint: man cat). Actually the hard part of that question is what does the "1> m1" do. The answer to that can be found in man bash. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
On Wed, Aug 16, 2006 at 10:15:10AM +1000, Carlo Sogono wrote: > it seems you have done absolutely *nothing*, not even try. Questions > like what does "cat 1> m1" do takes like less than 2 mins to solve even > for someone who have never used cat before (hint: man cat). Actually the hard part of that question is what does the "1> m1" do. The answer to that can be found in man bash. -- Norman Gaywood, Systems Administrator University of New England, Armidale, NSW 2351, Australia Please avoid sending me Word or Power Point attachments. See http://www.gnu.org/philosophy/no-word-attachments.html -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
David Herd wrote: Hi I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. Show us what you have done and/or not done, and we will tell you whether you are doing right, and we'll probably show you other ways of doing them better. Question 1. (16 marks) Write UNIX commands to a) show the lines of the online manual page for sort that contain the word order. b) show how many characters the date command outputs. c) copy all C source files (the filenames end in .c) from the present working directory into a subdirectory called Cfiles. d) list all files in the present working directory that have filenames that match: starts with either t or T the extension is a single digit e) compress all the files in the directory Docs/ and store them in an archive called Docs.tar f) sort the file /etc/passwd in reverse alphabetical order by username. g) append all the lines of m1 that contain "name" to m2 h) Mail the present working directory contents to the current user with subject Directory. Question 2. (4 marks) m1, m2 and m3 are text files. What do the follow commands do under bash? Answer in English. a) cat 1> m1 b) cat 0< m1 | sort 1> m2 2> m3 Question 3. (4 marks) m1, m2 and m3 are text files. What do the following commands do under tcsh? Answer in English. a) ls -l | grep admin |tee m1 | lpr -Pp1 b) zcat m.z | head -20 thanks David -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] apt questions - apt-cacher and /var/cache/apt/archives
On Wed, 2006-08-16 at 07:52 +1000, david wrote: > On Tue, 2006-08-15 at 23:27 +1000, Peter Hardy wrote: > > On Tue, 2006-08-15 at 23:03 +1000, david wrote: > > > Do the packages in /var/cache/apt/archives represent all the installed > > > packages on a standard Ubuntu system? > > > > Unless you've removed packages, the contents of /var/cache/apt/archives > > represent every single package ever installed on that system, regardless > > of whether a package was subsequently removed, or replaced by an updated > > version. > > > > apt-get has a couple of commands for managing the package cache. apt-get > > clean will clear out the cache completely. autoclean is a little more > > intelligent. Check the apt-get man page for details. > > > > Thanks for that. From the man page: > > autoclean > > APT::Clean-Installed will prevent installed packages from being erased > if it is set to off. > > How do I set APT::Clean-Installed? Google hasn't helped :( > Is this what I'm looking for? I'm not sure. What are you looking for? :-) That needs to be in apt's config file, /etc/apt/apt.conf . You'd want to add APT::Clean-Installed "false"; >From the apt.conf manpage: Clean-Installed Defaults to on. When turned on the autoclean feature will remove any packages which can no longer be downloaded from the cache. If turned off then packages that are locally installed are also excluded from cleaning - but note that APT provides no direct means to reinstall them. It looks like turning it off will leave you with a cache that slightly more accurately represents the packages that are installed on a machine after doing an autoclean. But if you're looking to mirror the installed package list on the box you're upgrading, you'd want to do something like: - On the first machine, run dpkg --get-selections > packagelist to get the status of all installed (and removed) packages. - Transfer packagelist to the second machine and run dpkg --set-selections < packagelist to set the desired status of all of those packages. - Run apt-get dselect-upgrade , which will then go about installing/removing things to change desired status to actual status. Cheers, -- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
On 2006.08.16 09:58 David Herd wrote: I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. David, In the ordinary course of events SLUG members (in common with most Lunix Users Groups) are only too willing to assist enquirers, especially those new to Linux. In fact, it is paramount to the culture of LUGs that we do so -- enthusiastically and graciously. HOWEVER, we will NOT provide answers to student assignments for you. If you are genuinely having trouble with a particular part of an assignment we will gladly put you on the right track. But first you must show us that you have really attempted the assignment by yourself unassisted. I hesitate to tell anyone to RTFM but in this case it is entirely appropriate. Robert Thorsby -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
Just like you I was also a computing student and you won't really learn anything if you don't exert any effort in working out these problems. I did a similar UNIX subject and most people who failed in class did well in assignments but bombed final exams because they had other people do assignments for them. Therefore it might help if you at least posted what you have done so far and what's getting you stuck. From your post it seems you have done absolutely *nothing*, not even try. Questions like what does "cat 1> m1" do takes like less than 2 mins to solve even for someone who have never used cat before (hint: man cat). Carlo David Herd wrote: Hi I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. Question 1. (16 marks) Write UNIX commands to a) show the lines of the online manual page for sort that contain the word order. b) show how many characters the date command outputs. c) copy all C source files (the filenames end in .c) from the present working directory into a subdirectory called Cfiles. d) list all files in the present working directory that have filenames that match: starts with either t or T the extension is a single digit e) compress all the files in the directory Docs/ and store them in an archive called Docs.tar f) sort the file /etc/passwd in reverse alphabetical order by username. g) append all the lines of m1 that contain "name" to m2 h) Mail the present working directory contents to the current user with subject Directory. Question 2. (4 marks) m1, m2 and m3 are text files. What do the follow commands do under bash? Answer in English. a) cat 1> m1 b) cat 0< m1 | sort 1> m2 2> m3 Question 3. (4 marks) m1, m2 and m3 are text files. What do the following commands do under tcsh? Answer in English. a) ls -l | grep admin |tee m1 | lpr -Pp1 b) zcat m.z | head -20 thanks David -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
http://tinyurl.com/ljkta has all your answersOn 8/16/06, David Herd < [EMAIL PROTECTED]> wrote:HiI'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land.Question 1. (16 marks)Write UNIX commands toa) show the lines of the online manual page for sort that contain the wordorder.b) show how many characters the date command outputs. c) copy all C source files (the filenames end in .c) from the presentworking directory into a subdirectory called Cfiles.d) list all files in the present working directory that have filenames that match: starts with either t or T the extension is a single digite) compress all the files in the directory Docs/ and store them in an archive called Docs.tarf) sort the file /etc/passwd in reverse alphabetical order by username.g) append all the lines of m1 that contain "name" to m2h) Mail the present working directory contents to the current user with subject Directory.Question 2. (4 marks)m1, m2 and m3 are text files.What do the follow commands do under bash?Answer in English.a) cat 1> m1b) cat 0< m1 | sort 1> m2 2> m3 Question 3. (4 marks)m1, m2 and m3 are text files.What do the following commands do under tcsh?Answer in English.a) ls -l | grep admin |tee m1 | lpr -Pp1b) zcat m.z | head -20 thanksDavid--SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html-- There is nothing more worthy of contempt than a man who quotes himself - Zhasper, 2004 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] linux assignment
Please do my assignment? Doesn't your course have a text or something? Dean David Herd wrote: Hi I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. Question 1. (16 marks) Write UNIX commands to a) show the lines of the online manual page for sort that contain the word order. b) show how many characters the date command outputs. c) copy all C source files (the filenames end in .c) from the present working directory into a subdirectory called Cfiles. d) list all files in the present working directory that have filenames that match: starts with either t or T the extension is a single digit e) compress all the files in the directory Docs/ and store them in an archive called Docs.tar f) sort the file /etc/passwd in reverse alphabetical order by username. g) append all the lines of m1 that contain "name" to m2 h) Mail the present working directory contents to the current user with subject Directory. Question 2. (4 marks) m1, m2 and m3 are text files. What do the follow commands do under bash? Answer in English. a) cat 1> m1 b) cat 0< m1 | sort 1> m2 2> m3 Question 3. (4 marks) m1, m2 and m3 are text files. What do the following commands do under tcsh? Answer in English. a) ls -l | grep admin |tee m1 | lpr -Pp1 b) zcat m.z | head -20 thanks David -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] linux assignment
Hi I'm a computing student who is having troubles with part of my assignment. Can I have any help out there in Linux land. Question 1. (16 marks) Write UNIX commands to a) show the lines of the online manual page for sort that contain the word order. b) show how many characters the date command outputs. c) copy all C source files (the filenames end in .c) from the present working directory into a subdirectory called Cfiles. d) list all files in the present working directory that have filenames that match: starts with either t or T the extension is a single digit e) compress all the files in the directory Docs/ and store them in an archive called Docs.tar f) sort the file /etc/passwd in reverse alphabetical order by username. g) append all the lines of m1 that contain "name" to m2 h) Mail the present working directory contents to the current user with subject Directory. Question 2. (4 marks) m1, m2 and m3 are text files. What do the follow commands do under bash? Answer in English. a) cat 1> m1 b) cat 0< m1 | sort 1> m2 2> m3 Question 3. (4 marks) m1, m2 and m3 are text files. What do the following commands do under tcsh? Answer in English. a) ls -l | grep admin |tee m1 | lpr -Pp1 b) zcat m.z | head -20 thanks David -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] apt questions - apt-cacher and /var/cache/apt/archives
$quoted_author = "david" ; > > Do the packages in /var/cache/apt/archives represent all the installed > packages on a standard Ubuntu system? > > Can I use this as input to apt-cacher for the purposes of subsequently > updating another box? Eg, breezy to dapper. try `aptitude autoclean` or `apt-get autoclean` if you don't have any network level apt caching then i would rsync /var/cache/apt/archives from the upgraded box to the to-be-upgraded box if you are trying to sync installed packages, use `dpkg --get-selections` on both and diff them. cheers marty -- The problem with America is stupidity. I'm not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? http://www.bash.org/?4753 -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] apt questions - apt-cacher and /var/cache/apt/archives
On Tue, 2006-08-15 at 23:27 +1000, Peter Hardy wrote: > On Tue, 2006-08-15 at 23:03 +1000, david wrote: > > Do the packages in /var/cache/apt/archives represent all the installed > > packages on a standard Ubuntu system? > > Unless you've removed packages, the contents of /var/cache/apt/archives > represent every single package ever installed on that system, regardless > of whether a package was subsequently removed, or replaced by an updated > version. > > apt-get has a couple of commands for managing the package cache. apt-get > clean will clear out the cache completely. autoclean is a little more > intelligent. Check the apt-get man page for details. > Thanks for that. From the man page: autoclean APT::Clean-Installed will prevent installed packages from being erased if it is set to off. How do I set APT::Clean-Installed? Google hasn't helped :( Is this what I'm looking for? > > Can I use this as input to apt-cacher for the purposes of subsequently > > updating another box? Eg, breezy to dapper. > > I guess you could seed apt-cacher with the contents of one machine's > package cache, yeah. But I've never used apt-cacher. :-) > > -- > Pete > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] apt questions - apt-cacher and /var/cache/apt/archives
On Tue, 2006-08-15 at 23:03 +1000, david wrote: > Do the packages in /var/cache/apt/archives represent all the installed > packages on a standard Ubuntu system? Unless you've removed packages, the contents of /var/cache/apt/archives represent every single package ever installed on that system, regardless of whether a package was subsequently removed, or replaced by an updated version. apt-get has a couple of commands for managing the package cache. apt-get clean will clear out the cache completely. autoclean is a little more intelligent. Check the apt-get man page for details. > Can I use this as input to apt-cacher for the purposes of subsequently > updating another box? Eg, breezy to dapper. I guess you could seed apt-cacher with the contents of one machine's package cache, yeah. But I've never used apt-cacher. :-) -- Pete -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] apt questions - apt-cacher and /var/cache/apt/archives
Do the packages in /var/cache/apt/archives represent all the installed packages on a standard Ubuntu system? Can I use this as input to apt-cacher for the purposes of subsequently updating another box? Eg, breezy to dapper. thanks... David. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] crazy dapper mouse
On Tue, 2006-08-15 at 20:47 +1000, Simon Wong wrote: > On Mon, 2006-08-14 at 11:09 +1000, david wrote: > > Sadly, it's not that simple. Google reports quite a few problems with > > Belkin KVM's. Does anyone else know about KVM issues, or whether another > > type is better? > > I have a 4 port Belkin SOHO series USB KVM and it works fine under > Dapper (and Breezy) on a number of Intel and AMD hardware platforms. > mine is ps2 ... that may be the problem. There have been a few problems reported on these things. Might be time for a new one. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] udev/jpilot question
On Fri, 2006-08-11 at 01:53 +1000, Sonia Hamilton wrote: > BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", > NAME{ignore_remove}="pilot", MODE="666" > > My question is: what is this supposed to be doing, and why would I want > to do it? (man udev didn't help...). Does it force that device to be created at startup? I know that some of the palm tools don't like the device not existing before they start. Which Treo do you have? I have a 650 (and a 600 prior to that) and it doesn't work too well in Dapper :-( Breezy was .. a Breeze ;-) There's a bug in the current 2.6.15 kernel that affects USB and my Treo. BTW thanks a lot for your notes on the Telstra wireless broadband card...got me up and running in no time flat :-) -- Simon Wong <[EMAIL PROTECTED]> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] crazy dapper mouse
On Mon, 2006-08-14 at 11:09 +1000, david wrote: > Sadly, it's not that simple. Google reports quite a few problems with > Belkin KVM's. Does anyone else know about KVM issues, or whether another > type is better? I have a 4 port Belkin SOHO series USB KVM and it works fine under Dapper (and Breezy) on a number of Intel and AMD hardware platforms. The only problem I have is on one PC that I have, it does not work on the Ubuntu CD install menu (but works fine once installed!). Bug filed. X configuration is as installed by Ubuntu for both OS versions. -- Simon Wong <[EMAIL PROTECTED]> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] Thanks Re: Cron and shutdown command
Thanks Dean, Simon, Zhasper and Martin. Got crontab to shutdown my PC at a predetermined time thanks to your assistance. Martins suggestion of using shutdown -h 200608142000 is interesting. Will try that next time. I just wanted to automatically shutdown my Mythtv ( MythDora) PC after a late-night recording of a TV program was finished, just like a VCR does, and to be able to set my PC to do this anytime that I configure a recording. In other words, each auto shutdown is an individual once-only operation. Crontab worked fine. Unfortunately, although MythDora recorded fine, the channels were not setup correctly. ie Nine Digital actually recorded 10, though Nine HD works fine, and selecting Nine Digital to view a program also works fine. Some problem with the Program Guide I think. Will setup the Channels again. Thanks Your replies showed once again that in Linux there's always more than one way to skin a cat, so to speak. Bill -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] modem dialup
Thanks for all your help - I gave up and re-installed a new flavour, in the end - PCLinuxOS, which I am extremely pleased with thus far. And, if you don't mind a fast learning Linux/wi-fi/OOP/security enthusiast from Melb joining, I think SLUG sounds heaps better than MLUG. Hey - I have cousins in Roseville and Concorde, so if there's a job at the end of my Masters in Sydney - Would I relocate? Would I ever - Zounds! Thanks for all your help on my entry level problem. Fantastic! Oh - anyone think a thread discussing the realities of the Cyber project which is key to the Dr Who storyline currently airing on the ABC>Linux has already beaten MS in the UN's global OLPC project, and they have zero local storage at all, complete Network terminals. It's a stretch, but it could be an interesting topic. Cheers HAV On 7/29/06, Ben Donohue <[EMAIL PROTECTED]> wrote: have you put an ordinary handset on the line and tested that you candial the number and get a response? Benhav wrote:> Hi - I am in Melb, but we don't have a SLUG, anyway, I have a problem> logging onto my uni (deakin) dialup, I know a little C++ but I've taken> up java, and am migrating from Windows. Any tips on compiling would be > appr. I have investigated> /usr/sbin/doc/share/ppp-2.4.0/ and altered the settings in the> ppp-on-dialer ini file, and my modem (ttyS0) does hit the dialin, but> it doesn't go very far at all. Any pointers? > Cheers> hav>> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html