You are not logged in.

#1 2010-06-04 21:33:07

bierni
Member
Registered: 2010-06-02
Posts: 11

saving Log files howto [SOLVED]

guys I have a problem - I would like to copy a log file on a, lets say, pendrive or other external hdd but:
a) how do I check the letter assigned to this drive?
b) "cp" command is enough?

or what should I do smile

and if I give for example the ifconfig -a or iwconfig command in the terminal (no X) - I would like to copy the content to a txt file - but how?

I know it's lame topic for you but I want to learn from you.

I'm asking nice - please help me somebody else I will slash my wrists with archlinux  dvd;)

Last edited by bierni (2010-06-05 18:42:06)

Offline

#2 2010-06-04 22:32:04

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: saving Log files howto [SOLVED]

how do I check the letter assigned to this drive?

use dmesg after pluging the drive in & look for something like this ..

sdX: sdX1
(X depends on no. of hdds you have but most probably "b")

"cp" command is enough?

yep.. smile

and if I give for example the ifconfig -a or iwconfig command in the terminal (no X) - I would like to copy the content to a txt file - but how?

ifconfig -a > filename
(>> if you want to append)

hope that helps...

P.S. dont die on our community. big_smile tongue

Last edited by vik_k (2010-06-04 22:36:10)


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

#3 2010-06-05 08:21:07

bierni
Member
Registered: 2010-06-02
Posts: 11

Re: saving Log files howto [SOLVED]

I did fdisk -l and it says that it is sdb

I did as a root:

[1] nano /dev/sdb/myfilename.txt
[2] ifconfig -a cat >> myfilename.txt

and it says [error] - it is not a catalog...

Offline

#4 2010-06-05 08:43:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: saving Log files howto [SOLVED]

It seems we need "Extreme Newbie Corner".. or even "Shouldn't really be using Arch Corner"..... yikes

[1]After identifying the device, you have to mount it - only then can you create files on it.
[2]vik_k already gave you the right command - why would you make up the wrong one??

Offline

#5 2010-06-05 09:56:48

bierni
Member
Registered: 2010-06-02
Posts: 11

Re: saving Log files howto [SOLVED]

tomk give me some slack - I have been using arch on my desktop (eth) without any problems.
problems started since I've got a laptop and wanted to connect it through wlan.

it is bad that I want to learn new things with arch? I mean you were also a newbie once upon time, right?

nevermind - it works like a charm after mounting.

Last edited by bierni (2010-06-05 13:48:07)

Offline

#6 2010-06-05 13:12:02

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: saving Log files howto [SOLVED]

OK, here's some slack - read man mount.

If someone takes the time to answer a question for you, do you honestly believe the right response from you is to ignore their answer and make up a completely wrong answer of your own?

If you want automounting, you need to configure it - there are various methods, all covered in the wiki.

You will also find information about wireless setup there.

Finally, should have said this before - please read what you have written before hitting enter. You may find off-colour remarks about attempting suicide amusing, but many others do not.

Offline

#7 2010-06-05 14:12:13

bierni
Member
Registered: 2010-06-02
Posts: 11

Re: saving Log files howto [SOLVED]

I didn't want to hurt someone's feelings - if I did - sorry.

and second big thanks to vik_k for his advice I really appreciate it - it works perfect for me after mounting smile

I'm going to see the whole ArchWiki.

thanks for help guys.

Offline

#8 2010-06-05 15:04:32

vik_k
Member
From: Pune, India
Registered: 2009-07-12
Posts: 227
Website

Re: saving Log files howto [SOLVED]

big thanks to vik_k for his advice I really appreciate it - it works perfect for me after mounting smile

smile

I'm going to see the whole ArchWiki.

It'll be appreciated as it is quite a mandatory step for new users.


"First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack." ~ George Carrette

Offline

Board footer

Powered by FluxBB