Re: Guide / Tools

2012-11-24 Thread Ralf Mardorf

Good morning Zenaan,
good morning Chris,

I'll reconsider to test aliases again. Usually I use the tab key, the  
cursor keys and my fingers type some commands automagically.


Regards,
Ralf




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/op.wn9s1b1gqhadp0@suse11-2



Re: Guide / Tools

2012-11-24 Thread Tony Baldwin
On Sat, Nov 24, 2012 at 02:48:02PM +1300, Chris Bannister wrote:
 On Fri, Nov 23, 2012 at 08:48:15PM +0100, Ralf Mardorf wrote:
  On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
   Altho some of the Linux commands that seem to be specific to certain 
   distros
  
  Some distros use aliases for commands, e.g. something like ls -a has an
  alias, this IMO should be avoided.
 
 I disagree. Aliases are extremely handy. I wish I started using them far
 sooner than I did.
 

I use a few in my .bashrc, like
alias cnc='cd  clear'
alias cd2='cd ../../'
alias cd3='cd ../../../'
alias cd4='cd ../../../../'
alias cd5='cd ../../../../.../'
alias lsd='ls --list-directories-first'
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
alias mocp='mocp -T transparent-background'

quite handy.

./tony
-- 
http://www.tonybaldwin.me
all tony, all the time!
3F330C6E


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-23 Thread Andrei POPESCU
On Mi, 21 nov 12, 09:25:45, Ralf Mardorf wrote:
 
   top
 
 In this context
 
 killall -9 -w software_name
 
 is very helpful.

Just stumbled across:

http://partmaps.org/era/unix/award.html#uuk9letter

I prefer 'killall name' (which sends 15 by default)

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-23 Thread Andrei POPESCU
On Mi, 21 nov 12, 15:54:03, Morel Bérenger wrote:
 
 When I need calculations, I want a tool which can understand simple
 things. If I need complex ones, I will take my vim and do some
 programming.

qalc, can do conversions as well.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-23 Thread Andrei POPESCU
On Mi, 21 nov 12, 23:06:52, Ralf Mardorf wrote:
 
 I noticed that visudo isn't vi, but nano on my current Ubuntu. Nano
 seems to be more comfortable than vi.

Set $VISUAL or $EDITOR as needed. Or change your /usr/bin/editor 
alternative.

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-23 Thread Andrei POPESCU
On Ma, 20 nov 12, 18:59:49, Crypticmofo wrote:
 
 From the more exprienced Debian users can you guys paste or post a
 list of the most common commands that you use

According to 'popularity-contest | head -100' I'm using these a lot:

sudo
screen
yeahconsole
rxvt-unicode
mutt

Note: my /usr is mounted 'noatime'

Others (in no particular order):
aptitude / apt-get / apt-cache / apt-file
dpkg
mc
man
less
vim
qalc
mpc :D
service
ssh
cat
grep
dwb

Some of these will probably never show in the popularity-contest listing 
because I have an an instance running all the time (e.g. aptitude and 
dwb).

Kind regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-23 Thread Ralf Mardorf
On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
 Altho some of the Linux commands that seem to be specific to certain 
 distros

Some distros use aliases for commands, e.g. something like ls -a has an
alias, this IMO should be avoided. For at least one distro it was
possible to type unmount instead of umount or a complete translation
to DOS commands was available. For people who aren't native English
speakers IMO simply a list with the complete name should be provided,
e.g. cd = change directory, mv = move etc..


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353700095.6366.59.camel@q



Re: Guide / Tools

2012-11-23 Thread Ralf Mardorf
On Fri, 2012-11-23 at 15:09 +0200, Andrei POPESCU wrote:
 On Mi, 21 nov 12, 09:25:45, Ralf Mardorf wrote:
  
top
  
  In this context
  
  killall -9 -w software_name
  
  is very helpful.
 
 Just stumbled across:
 
 http://partmaps.org/era/unix/award.html#uuk9letter
 
 I prefer 'killall name' (which sends 15 by default)

Hard to say what's better. A newbie might be surprised if kill name
won't stop something bad.

My start audio session scripts start with
killall -9 -w [...], so what ever should happen, I only need to start
the script again, but I agree, if I have to manually kill something I
start with a simple killall or kill.

Regards,
Ralf


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353701589.6366.70.camel@q



Re: Guide / Tools

2012-11-23 Thread Ralf Mardorf
On Fri, 2012-11-23 at 15:20 +0200, Andrei POPESCU wrote:
 On Mi, 21 nov 12, 23:06:52, Ralf Mardorf wrote:
  
  I noticed that visudo isn't vi, but nano on my current Ubuntu. Nano
  seems to be more comfortable than vi.
 
 Set $VISUAL or $EDITOR as needed. Or change your /usr/bin/editor 
 alternative.

The variables are  for this Ubuntu install.

spinymouse@q:~$ ls -hAl /usr/bin/editor
lrwxrwxrwx 1 root root 24 Nov 19 19:30 /usr/bin/editor - 
/etc/alternatives/editor
spinymouse@q:~$ ls -hAl /etc/alternatives/editor
lrwxrwxrwx 1 root root 9 Nov 19 19:29 /etc/alternatives/editor - /bin/nano

Thank you, I wasn't aware that it's handled that way.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353701916.6366.73.camel@q



Re: Guide / Tools

2012-11-23 Thread Ralf Mardorf
On Fri, 2012-11-23 at 21:13 +0100, Ralf Mardorf wrote:
 On Fri, 2012-11-23 at 15:09 +0200, Andrei POPESCU wrote:
  On Mi, 21 nov 12, 09:25:45, Ralf Mardorf wrote:
   
 top
   
   In this context
   
   killall -9 -w software_name
   
   is very helpful.
  
  Just stumbled across:
  
  http://partmaps.org/era/unix/award.html#uuk9letter
  
  I prefer 'killall name' (which sends 15 by default)
 
 Hard to say what's better. A newbie might be surprised if kill name
  A typo   killall
 won't stop something bad.
 
 My start audio session scripts start with
 killall -9 -w [...], so what ever should happen, I only need to start
 the script again, but I agree, if I have to manually kill something I
 start with a simple killall or kill.
 
 Regards,
 Ralf



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353702279.11101.1.camel@q



Re: Guide / Tools

2012-11-23 Thread Chris Bannister
On Fri, Nov 23, 2012 at 08:48:15PM +0100, Ralf Mardorf wrote:
 On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
  Altho some of the Linux commands that seem to be specific to certain 
  distros
 
 Some distros use aliases for commands, e.g. something like ls -a has an
 alias, this IMO should be avoided.

I disagree. Aliases are extremely handy. I wish I started using them far
sooner than I did.

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121124014802.GB17873@tal



Re: Guide / Tools

2012-11-23 Thread Ralf Mardorf
On Sat, 2012-11-24 at 14:48 +1300, Chris Bannister wrote:
 On Fri, Nov 23, 2012 at 08:48:15PM +0100, Ralf Mardorf wrote:
  On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
   Altho some of the Linux commands that seem to be specific to certain 
   distros
  
  Some distros use aliases for commands, e.g. something like ls -a has an
  alias, this IMO should be avoided.
 
 I disagree. Aliases are extremely handy. I wish I started using them far
 sooner than I did.

alias ll='ls -l'
alias ls='/bin/ls $LS_OPTIONS'

and at some point neither you nor anybody else does know what a command
will do.

ll IMO is stupid, a variable is ok, if the default is an empty string,
the user only set up the variable for a session where to run thousand
times the same command.

I'm using the arrow keys instead of aliases.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353723211.11101.96.camel@q



Re: Guide / Tools

2012-11-23 Thread Zenaan Harkness
On 11/24/12, Ralf Mardorf ralf.mard...@alice-dsl.net wrote:
 On Sat, 2012-11-24 at 14:48 +1300, Chris Bannister wrote:
 On Fri, Nov 23, 2012 at 08:48:15PM +0100, Ralf Mardorf wrote:
  On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
   Altho some of the Linux commands that seem to be specific to certain
   distros
 
  Some distros use aliases for commands, e.g. something like ls -a has an
  alias, this IMO should be avoided.

 I disagree. Aliases are extremely handy. I wish I started using them far
 sooner than I did.

 alias ll='ls -l'
 alias ls='/bin/ls $LS_OPTIONS'

 and at some point neither you nor anybody else does know what a command
 will do.

 ll IMO is stupid

I disagree. ll is so very convenient.

However, I _always_ make sure LS_OPTIONS is unset, and generally limit
aliases to non-default commands, ie ls is for me (and I say should be)
just plain ls, no options, no hidden environment variables. But ll,
la, etc are not only free game, but very convenient, I find.

cheers
zenaan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOsGNSSLoRwkqNP=_gra5ts5xn4k0xcnuptgq_xnsdarjvk...@mail.gmail.com



Re: Guide / Tools

2012-11-23 Thread Chris Bannister
On Sat, Nov 24, 2012 at 03:13:31AM +0100, Ralf Mardorf wrote:
 On Sat, 2012-11-24 at 14:48 +1300, Chris Bannister wrote:
  On Fri, Nov 23, 2012 at 08:48:15PM +0100, Ralf Mardorf wrote:
   On Thu, 2012-11-22 at 11:35 -0500, Doug wrote:
Altho some of the Linux commands that seem to be specific to certain 
distros
   
   Some distros use aliases for commands, e.g. something like ls -a has an
   alias, this IMO should be avoided.
  
  I disagree. Aliases are extremely handy. I wish I started using them far
  sooner than I did.
 
 alias ll='ls -l'
 alias ls='/bin/ls $LS_OPTIONS'
 
 and at some point neither you nor anybody else does know what a command
 will do.
 
 ll IMO is stupid, a variable is ok, if the default is an empty string,
 the user only set up the variable for a session where to run thousand
 times the same command.

Just because aliases can be used in a stupid way does not make them
stupid.

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121124043024.GA20358@tal



Re: Guide / Tools

2012-11-22 Thread Morel Bérenger
 Simple things are really simple in bc.
sounds like, yes.
I'll try that someday


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/b72a3ac3cd3870db99ec175b04065008.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-22 Thread Morel Bérenger
 This whole thread points out a major problem with using Linux. There is
 no comprehensive, cross referenced, command dictionary anywhere. I have a C
 programming reference that was written by Kernegian and Ritchy way back
 when, which referenced the C commands by function, that I used to live by.
 We need something like this for the Linux / Unix community. I
 think a properly architectured WIKI would be a wonderful idea.
 Unfortunately I don't feel I have the knowledge necessary to start one.
 As an example, if I look up 'System Maintenance' I should get a sub list
 of Aptitude, dpkg, apt-get etc, with a quick blurb on each. A newbe could
 then make a choice of which package the wish to try. I've been using
 Debian linux for over 15 years and am still finding commands that
 are useful. The worst part is that I am loosing commands at about the same
 rate because of only occasional use. It is really frustrating when you
 know there is a command that you used 2 years ago that is exactly what you
 need but can't remember its name.

 Gary R.

This... is really true, and an excellent idea.
The problem is probably also that some commands can be used for more than
one thing, so making category is not so easy.
Example: grep
_ can be used to search a text in a file
_ can be used to search files containing some text

Also, should that wiki be a reference, containing full doc of commands, or
simply a repertoire (not sure for the word) which said  cd is used to
change directory.
One is too long, the other is too short. Another solution would be to add
a short example to the second...


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/686cb2dc9b68d813ee77b0385eb78b78.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-22 Thread steef

On 21-11-12 23:06, Ralf Mardorf wrote:

On Wed, 2012-11-21 at 21:28 +, Joe wrote:

I use dpkg [...] if I need to install a .deb

...

mc

Indeed. I never went the vi/emacs route since cooledit in mc does all
the admin work I need to do, and I don't do heavy text processing. And
my server doesn't have X, so mc is a useful semi-graphical file manager
and simple text editor combined. And I'm old enough to remember the
Norton Commander...

.

ah yes: the norton commander! the time 'we' could communicate with 
keyboard and screen (F4,F9 etc.etc.) how surprising that still was in 
1993/1994. i stop now: getting sentimental


reg.,

steef


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ae0656.5030...@home.nl



Re: Guide / Tools

2012-11-22 Thread Doug

On 11/22/2012 05:52 AM, Morel Bérenger wrote:

This whole thread points out a major problem with using Linux. There is
no comprehensive, cross referenced, command dictionary anywhere. I have a C
programming reference that was written by Kernegian and Ritchy way back
when, which referenced the C commands by function, that I used to live by.
We need something like this for the Linux / Unix community. I
think a properly architectured WIKI would be a wonderful idea.
Unfortunately I don't feel I have the knowledge necessary to start one.
As an example, if I look up 'System Maintenance' I should get a sub list
of Aptitude, dpkg, apt-get etc, with a quick blurb on each. A newbe could
then make a choice of which package the wish to try. I've been using
Debian linux for over 15 years and am still finding commands that
are useful. The worst part is that I am loosing commands at about the same
rate because of only occasional use. It is really frustrating when you
know there is a command that you used 2 years ago that is exactly what you
need but can't remember its name.

Gary R.

This... is really true, and an excellent idea.
The problem is probably also that some commands can be used for more than
one thing, so making category is not so easy.
Example: grep
_ can be used to search a text in a file
_ can be used to search files containing some text

Also, should that wiki be a reference, containing full doc of commands, or
simply a repertoire (not sure for the word) which said  cd is used to
change directory.
One is too long, the other is too short. Another solution would be to add
a short example to the second...


Altho some of the Linux commands that seem to be specific to certain 
distros
may not be found there, a very useful book is Linux in a Nutshell, 
which calls
itself A Desktop Quick Reference.  O'Reilly.  $50 when I bought mine 
several

years ago.  I use it all the time.

--doug


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ae5456.50...@optonline.net



Re: Guide / Tools

2012-11-22 Thread Tony van der Hoff
On 22/11/12 16:35, Doug wrote:
 On 11/22/2012 05:52 AM, Morel Bérenger wrote:
 This whole thread points out a major problem with using Linux. There is
 no comprehensive, cross referenced, command dictionary anywhere. I
 have a C
 programming reference that was written by Kernegian and Ritchy way back
 when, which referenced the C commands by function, that I used to
 live by.
 We need something like this for the Linux / Unix community. I
 think a properly architectured WIKI would be a wonderful idea.
 Unfortunately I don't feel I have the knowledge necessary to start one.
 As an example, if I look up 'System Maintenance' I should get a sub list
 of Aptitude, dpkg, apt-get etc, with a quick blurb on each. A newbe
 could
 then make a choice of which package the wish to try. I've been using
 Debian linux for over 15 years and am still finding commands that
 are useful. The worst part is that I am loosing commands at about the
 same
 rate because of only occasional use. It is really frustrating when you
 know there is a command that you used 2 years ago that is exactly
 what you
 need but can't remember its name.

 Gary R.
 This... is really true, and an excellent idea.
 The problem is probably also that some commands can be used for more than
 one thing, so making category is not so easy.
 Example: grep
 _ can be used to search a text in a file
 _ can be used to search files containing some text

 Also, should that wiki be a reference, containing full doc of
 commands, or
 simply a repertoire (not sure for the word) which said  cd is used to
 change directory.
 One is too long, the other is too short. Another solution would be to add
 a short example to the second...


 Altho some of the Linux commands that seem to be specific to certain
 distros
 may not be found there, a very useful book is Linux in a Nutshell,
 which calls
 itself A Desktop Quick Reference.  O'Reilly.  $50 when I bought mine
 several
 years ago.  I use it all the time.


Or a free PDF download. I got it here:
http://it-ebooks.info/book/403/

-- 
Tony van der Hoff| mailto:t...@vanderhoff.org
Buckinghamshire, England |


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50ae56a8.8040...@vanderhoff.org



Re: Guide / Tools

2012-11-22 Thread Gary Roach

On 11/21/2012 06:02 AM, Hugo Vanwoerkom wrote:

Crypticmofo wrote:

Hello

I'm new to debian and i hang out in the irc channels .. i realize
that irc is there really for support so i wanted to take my question
here ..

 From the more exprienced Debian users can you guys paste or post a
list of the most common commands that you use

I already know of the docs like

debian-handbook
debian-kernel-handbook
debian-refernce
apt-common

And yes most of the manpages

What i really want are real life uses everyday ie.. do you use a lot
of dpkg commands do you use  a lot of apt or aptitude commands everday

Also .. in your experience what are good handy tools we should have
and learn that are a must to be able to navigate / use Debian



still for me:

mc (in a text VT)

Hugo



I sent this before but it never showed up on the list. So:

This whole thread points out a major problem with using Linux. There is 
no comprehensive, cross referenced, command dictionary anywhere. I have 
a C programming reference that was written by Kernegian and Ritchy way 
back when, which referenced the C commands by function, that I used to 
live by. We need something like this for the Linux / Unix community. I 
think a properly architectured WIKI would be a wonderful idea. 
Unfortunately I don't feel I have the knowledge necessary to start one. 
As an example, if I look up 'System Maintenance' I should get a sub list 
of Aptitude, dpkg, apt-get etc, with a quick blurb on each. A newbe 
could then make a choice of which package the wish to try. I've been 
using Debian linux for over 15 years and am still finding commands that 
are useful. The worst part is that I am loosing commands at about the 
same rate because of only occasional use. It is really frustrating when 
you know there is a command that you used 2 years ago that is exactly 
what you need but can't remember its name.


Gary R.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a 
subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ad37cc.1070...@verizon.net



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ae7547.8030...@verizon.net



Re: Guide / Tools

2012-11-22 Thread Tony Baldwin
On Thu, Nov 22, 2012 at 10:56:07AM -0800, Gary Roach wrote:
 On 11/21/2012 06:02 AM, Hugo Vanwoerkom wrote:
 Crypticmofo wrote:
 Hello
 
 I'm new to debian and i hang out in the irc channels .. i realize
 that irc is there really for support so i wanted to take my question
 here ..
 
  From the more exprienced Debian users can you guys paste or post a
 list of the most common commands that you use
 
 I already know of the docs like
 
 debian-handbook
 debian-kernel-handbook
 debian-refernce
 apt-common
 
 And yes most of the manpages
 
 What i really want are real life uses everyday ie.. do you use a lot
 of dpkg commands do you use  a lot of apt or aptitude commands everday
 
 Also .. in your experience what are good handy tools we should have
 and learn that are a must to be able to navigate / use Debian
 
 
 still for me:
 
 mc (in a text VT)
 
 Hugo

I recommend learning vim (http://www.vim.org)
Grep and sed are both immensely useful, as is find...there are, indeed,
many.

While I do not find a comprehensive wiki with anything like a full
listing of possible bash shell command line tools, I did find these very
useful items: 


Advanced Bash Scripting Guide:
http://www.tldp.org/LDP/abs/html/index.html
bash hackers wiki: http://wiki.bash-hackers.org/doku.php
Linux for Newbies/Command Line:
https://en.wikibooks.org/wiki/Linux_For_Newbies/Command_Line
Linux Command Line Basics:
http://www.cs.wmich.edu/wiki/index.php/Linux_Command_Line_Basics
Linux Guide/Linux Commands:
https://en.wikibooks.org/wiki/Linux_Guide/Linux_commands
Linux Guide/Using the shell:
https://en.wikibooks.org/wiki/Linux_Guide/Using_the_shell

I could very easily set up another dokuwiki on one of my servers
somewhere for cli wiki, but, with so many already started and not
complete on the internet, I have no illusions that anything I start
would ever become comprehensive or the go-to guide.

Also, follow this person on identi.ca:
https://identi.ca/climagic
Their site: http://suso.suso.org/xulu/Command_Line_Magic


./tony
-- 
http://www.tonybaldwin.me
all tony, all the time!
3F330C6E


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-22 Thread Tony Baldwin
On Thu, Nov 22, 2012 at 10:36:41PM -0500, Tony Baldwin wrote:
 On Thu, Nov 22, 2012 at 10:56:07AM -0800, Gary Roach wrote:
  On 11/21/2012 06:02 AM, Hugo Vanwoerkom wrote:
  Crypticmofo wrote:
  Hello
  
  I'm new to debian and i hang out in the irc channels .. i realize
  that irc is there really for support so i wanted to take my question
  here ..
  
   From the more exprienced Debian users can you guys paste or post a
  list of the most common commands that you use
 While I do not find a comprehensive wiki with anything like a full
 listing of possible bash shell command line tools, I did find these very
 useful items: 
 

Or, doh...why didn't I think of this one:
Bash Reference Manual
http://www.gnu.org/software/bash/manual/bashref.html

-- 
http://www.tonybaldwin.me
all tony, all the time!
3F330C6E


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-21 Thread Johann Spies
On 21 November 2012 04:59, Crypticmofo crypticmofo2...@gmail.com wrote:



 What i really want are real life uses everyday ie.. do you use a lot of
 dpkg commands do you use  a lot of apt or aptitude commands everday


It depends on what you do with your computer.

In my case:

mutt
emacs
ncdu
df -h
ls -laprt
sort
most
vim
/etc/init.d/some service  reload/restart/stop/start ...
grep
pgrep
pkill
ps
top
dstat
vmstat
awk
sed
psql
pgadmin3
w3m
wajig
aptitude
apt
dpkg
make
latex
freemind
evince

You do not remember them all when you do not use them.  I have changed job
two years ago from system administrator to data-manager and I tend to
forget many of the shortcuts I have used as system administrator because I
do not use them on a daily basis.

Regards
Johann
-- 
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)


Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 10:00 +0200, Johann Spies wrote:

 /etc/init.d/some service  reload/restart/stop/start ...

Not needed by a newbie and quasi obsolet for many distros.

 grep

Very useful!

 top

Very useful! Alternatives: htop and atop

I like hwinfo instead of a bundle of other commands.

 w3m
 make

Ok, I didn't comment everything, you mentioned several commands that IMO
are only confusing a newbie, those are also two commands that are
unimportant.

 I tend to forget many of the shortcuts

And I forgot to mention shortcuts.

Yes, there are some useful shortcuts. I guess tty is unimportant at the
moment, but e.g. Alt+F2 is useful to launch an app and Ctrl+Alt+F7 is
useful, if a newbie should lose the desktop environment. Cut and copy
shortcuts perhaps are already known

Regards,
Ralf



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353486130.2626.47.camel@q



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf

  top

In this context

killall -9 -w software_name

is very helpful.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353486345.2626.50.camel@q



Re: Guide / Tools

2012-11-21 Thread Morel Bérenger
It depends on your uses as others have said.
In my case, I am a developer, which sadly does not uses linux at work
(hopefully that'll change someday).

I prefer command-line to graphical file explorer, and have a tiling window
manager (command-line without that kind of wm is a little less comfortable
IMHO).

So, here are my favorite commands:

xdg-open
cd (there are some tricks, like no args, using '/' or '~' to start the arg)
cp
mv
ls -lh
find -iname '*.foo'
grep -lri regex (find files containing the regex)
less
cat
cat file | grep regex (find all regex occurrences in file)
echo
du --max-depth=1 -h
df -h
mpc (for mpd control, mpd is a music player daemon)
cmake
make
gcc / g++
xrandr
syncclient
ifup
ifdown
ifconfig

some scripts (binded by keys in my window manager or not) I have in
~/.config/scripts, like one for rotating the screen of my netbook and
opening a pdf (wide screen are not nice for reading novels)

and software with some gui (ncurses or gtk is the same for me, anyway I
often start them with commandline):
aptitude
ncmpcpp
vim
codeblocks
meld
galculator
gftp
uzbl
wesnoth :D

I think that on linux, everyone have his own real world, so you will have
to learn by yourself depending on your favorite tools and uses. That's why
I sometimes think that maybe linux is hard to use, unlike windows. Here,
we can choose, and choosing wisely needs learning.
An idea for that is to build a list of tools you use, by using zim, for
example (a desktop wiki, very good to take notes).

PS: I am only using debian for a day to day basis since 2 years, so I
still have many things to learn, and many tools that lacks me.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ed439526a12ebc388c7fcc66bef0d9db.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-21 Thread Morel Bérenger
 Yes, there are some useful shortcuts. I guess tty is unimportant at the
 moment, but e.g. Alt+F2 is useful to launch an app and Ctrl+Alt+F7 is
 useful, if a newbie should lose the desktop environment. Cut and copy
 shortcuts perhaps are already known

The problem for shortcuts are that they differ depending on user
configuration. Are the ALT+F2 used by all major DE? I only know it is used
by XFCE...


I also forgot some commands, in process management:
xkill = kill the window on which you will click. That tool is very useful
when a sofware crash.
ps -u berenger = show my processes, to help me kill them

And apps for monitoring:
xosview, but it is not a command-line, it have a gui

For playing with the X root window (on windows, you could name that the
wallpaper) there are:
xphoon
xplanet
But those are real playing, btw, that's really useless (and so, I must use
them, obvious, no?)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/5661c01af27130f9d6a536c436acf16c.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 09:40 +0100, Morel Bérenger wrote:
  Yes, there are some useful shortcuts. I guess tty is unimportant at the
  moment, but e.g. Alt+F2 is useful to launch an app and Ctrl+Alt+F7 is
  useful, if a newbie should lose the desktop environment. Cut and copy
  shortcuts perhaps are already known
 
 The problem for shortcuts are that they differ depending on user
 configuration. Are the ALT+F2 used by all major DE? I only know it is used
 by XFCE...

Alt+F2 usually does work with all DEs by default, other shortcuts, e.g.
Ctrl+Alt+Backspace nowadays are usually disabled by default.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353488047.2626.55.camel@q



Re: Guide / Tools

2012-11-21 Thread Chris Bannister
On Wed, Nov 21, 2012 at 03:31:37PM +1100, Zenaan Harkness wrote:
 You might say where you're coming from - Windows, Fedora, ... ?
 
 aptitude search blah (or apt-cache search blah)
 aptitude show blah (or apt-cache show ...)
 ip
 route -n
 ping

So you use these commands everyday? Interesting. BTW, it is considered
rude to gratuitiously ping servers on the net. 

IOW, I question that these commands are in common use everyday. The
exceptions being apt-cache search apt-cache show, then again, they
probably are not used commonly everyday.

The answer to the OP's question depends very much on what you use your
computer for.

I tend to use lynx a lot, and of course vim, a bit of crafty, mutt, feh,
mplayer (mplayer2 actually, but the alternates system takes care of
that) rtorrent, wodim, devede ...

But instead, a better question might be, I want to use my computer for
xyz, what software do you recommend?

One answer could be apt-cache search xyz then take your pick.

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121084901.GD26390@tal



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 09:34 +0100, Morel Bérenger wrote:
 cd (there are some tricks, like no args, using '/' or '~' to start the arg)
 cp

To read about globbing is very important. Simply using wildcards could
cause serious issues.

 cat file | grep regex (find all regex occurrences in file)

No, we use

grep regex file

instead ;).

 make
 ifup

Please don't write newbies such commands, that are completely useless
for a newbie.

 ifdown
 ifconfig

Yes
 galculator
is very good, if you have a num pad where the . is a ,, OTOH
gcalctool does completely display what you typed.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353488733.2626.65.camel@q



Re: Guide / Tools

2012-11-21 Thread Lisi Reisz
On Wednesday 21 November 2012 09:05:33 Ralf Mardorf wrote:
  make
  ifup

 Please don't write newbies such commands, that are completely useless
 for a newbie.

  ifdown
  ifconfig

 Yes

Surely, if one is going to use ifdown, one also needs ifup?

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201211210913.08226.lisi.re...@gmail.com



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 09:13 +, Lisi Reisz wrote:
 On Wednesday 21 November 2012 09:05:33 Ralf Mardorf wrote:
   make
   ifup
 
  Please don't write newbies such commands, that are completely useless
  for a newbie.
 
   ifdown
   ifconfig
 
  Yes
 
 Surely, if one is going to use ifdown, one also needs ifup?
 
 Lisi

By accident I didn't [snip] those lines.

A Debian default install for sure comes with networkmanager or something
similar.

A newbie doesn't need configure, make, make install (checkinstall) and a
newbie sing a DE doesn't need if... .



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353489487.2626.68.camel@q



Re: Guide / Tools

2012-11-21 Thread Morel Bérenger
As I said, I still consider myself as a newbie (or a very novice, take
your favorite) :)
2 years can help learn a lot, but learning could be implementing with
something like:
learn(){
  read();
  understand();
  memorize();
  learn();
}


 cd (there are some tricks, like no args, using '/' or '~' to start the
 arg) cp

 To read about globbing is very important. Simply using wildcards could
 cause serious issues.
What is globbing, and which issues can cause wildcards? Symbolic links
problems?

 grep regex file
Ho, I did not know about that... interesting :) (I am just starting to use
some grep features other than find a single word in a single file...)

 make ifup

 Please don't write newbies such commands, that are completely useless
 for a newbie.
For make, if he is a newbie only with linux, but not with development, you
are wrong. Else, you are true, but we have no clue. I did not speak about
using make to install softwares without packages.

For ifup/down:
I have no other choice for ifup with my eeepc, because when I change wifi
network (actually, I change my /etc/network/interface each time, have not
find/searched a good solution, without using graphical tools, which I do
not need), or just enable/disable wifi, the network does not adapt itself
to change, and so I must down/up it.
I should like to learn how to use/customize acpi, but lacks of time is a
strong enemy, and man did not helped me a lot.

 galculator
 is very good, if you have a num pad where the . is a ,, OTOH gcalctool
 does completely display what you typed.
The numpad is not a problem for me, honestly, I tend to use it very
rarely... I prefer to use the top line of keybord :P
And anyway, using ',' or '.'... most computers tools use '.' and all
programming languages I know of too.
And as I said, I am a developer, so I'm accustomed to that.
But I did not found gcalttool before, I'll try it.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/065dadfba0eac1c668d5fc208b5a361f.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 10:36 +0100, Morel Bérenger wrote:
  To read about globbing is very important. Simply using wildcards could
  cause serious issues.
 What is globbing, and which issues can cause wildcards?

$ touch .test test
$ ls -A
test  .test
$ rm *
$ ls -A
.test

So for a backup hidden files won't be copied.

http://lmgtfy.com/?q=linux+globbing

Regards,
Ralf

PS: Please reply to the list only.






-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353491459.2626.82.camel@q



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 10:50 +0100, Ralf Mardorf wrote:
 On Wed, 2012-11-21 at 10:36 +0100, Morel Bérenger wrote:
   To read about globbing is very important. Simply using wildcards could
   cause serious issues.
  What is globbing, and which issues can cause wildcards?
 
 $ touch .test test
 $ ls -A
 test  .test
 $ rm *
 $ ls -A
 .test
 
 So for a backup hidden files won't be copied.
 
 http://lmgtfy.com/?q=linux+globbing
 
 Regards,
 Ralf
 
 PS: Please reply to the list only.

PPS: And now use the asterisk and delete or copy a folder including
hidden files. The hidden files won't be ignored any more.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353492133.2626.85.camel@q



Re: Guide / Tools

2012-11-21 Thread Morel Bérenger
 PS: Please reply to the list only.
Sorry for that, I am using a webmail quite primitive, and I regularly
forgot to check all fields...

I should search for a portable and lightweight but good software for such
kind of things, I guess.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/363c1d25d87d8fae2df4d1cb67452214.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-21 Thread Tom Furie
On Wed, Nov 21, 2012 at 09:22:10AM +0100, Ralf Mardorf wrote:

 Not needed by a newbie and quasi obsolet for many distros.
 
 Ok, I didn't comment everything, you mentioned several commands that IMO
 are only confusing a newbie, those are also two commands that are
 unimportant.

The OP didn't ask What commands would you recommend to a newbie?, the
OP asked What commands do you use every day?

Cheers,
Tom

-- 
Let us endeavor so to live that when we come to die even the undertaker will be
sorry.
-- Mark Twain, Pudd'nhead Wilson's Calendar


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-21 Thread Linux-Fan
On 11/21/2012 03:59 AM, Crypticmofo wrote:
 Hello
 
 I'm new to debian and i hang out in the irc channels .. i realize that
 irc is there really for support so i wanted to take my question here ..
 
 From the more exprienced Debian users can you guys paste or post a list
 of the most common commands that you use
 
 I already know of the docs like
 
 debian-handbook
 debian-kernel-handbook
 debian-refernce
 apt-common
 
 And yes most of the manpages
 
 What i really want are real life uses everyday ie.. do you use a lot of
 dpkg commands do you use  a lot of apt or aptitude commands everday
 
 Also .. in your experience what are good handy tools we should have and
 learn that are a must to be able to navigate / use Debian

As long as your system works you only need to know little tools, e.g.
the aptitude update  aptitude full-upgrade to update your system.
Whenever anything breaks, it is always useful to know how to work on a
terminal-only. And... while using Debian and customizing it, installing
software, changing configuration files, etc. you will learn some tools
automatically. You will find your favourite text-editor and (probably
antoher) terminal-only editor for editing configuration files.

I commonly use these commands and programs:
ls, cp, rm, cd, dd, mkdir, touch, grep, cat, exit,
vim, aptitude, 7z, tar, make, md5sum, mount, ifconfig,
ip (newer ifconfig, but more difficult IMO), ping,
tail, mv, ln, su, ssh, service, halt

There are certianly more but I do not remember them now. Some of them
might be useful to you, some might be completely useless... it highly
depends on what you usually do.

For the commandline there are also interesting shortcuts, e.g. CTRL-C to
terminate the program that is just running, CTRL-Z to stop a program and
fg to continue it in the foreground or bg to continue it in the background.

For automating/shortening commands, scripts and aliases are also very
useful and time-saving.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50acdc52.80...@web.de



Re: Guide / Tools

2012-11-21 Thread Hugo Vanwoerkom

Crypticmofo wrote:

Hello

I'm new to debian and i hang out in the irc channels .. i realize that 
irc is there really for support so i wanted to take my question here ..


 From the more exprienced Debian users can you guys paste or post a list 
of the most common commands that you use


I already know of the docs like

debian-handbook
debian-kernel-handbook
debian-refernce
apt-common

And yes most of the manpages

What i really want are real life uses everyday ie.. do you use a lot of 
dpkg commands do you use  a lot of apt or aptitude commands everday


Also .. in your experience what are good handy tools we should have and 
learn that are a must to be able to navigate / use Debian




still for me:

mc (in a text VT)

Hugo


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/k8imud$gmq$1...@ger.gmane.org



Re: Guide / Tools

2012-11-21 Thread Chris Bannister
On Wed, Nov 21, 2012 at 09:54:07AM +0100, Ralf Mardorf wrote:
 On Wed, 2012-11-21 at 09:40 +0100, Morel Bérenger wrote:
   Yes, there are some useful shortcuts. I guess tty is unimportant at the
   moment, but e.g. Alt+F2 is useful to launch an app and Ctrl+Alt+F7 is
   useful, if a newbie should lose the desktop environment. Cut and copy
   shortcuts perhaps are already known
  
  The problem for shortcuts are that they differ depending on user
  configuration. Are the ALT+F2 used by all major DE? I only know it is used
  by XFCE...
 
 Alt+F2 usually does work with all DEs by default, other shortcuts, e.g.
 Ctrl+Alt+Backspace nowadays are usually disabled by default.

Which reminds me of another handy/important command:
dpkg-reconfigure package-name

i.e.
dpkg-reconfigure keyboard-configuration allows you change whether
Ctrl+Alt+Backspace terminates the X server.

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121141458.GB32325@tal



Re: Guide / Tools

2012-11-21 Thread Chris Bannister
On Wed, Nov 21, 2012 at 10:05:33AM +0100, Ralf Mardorf wrote:
 galculator
 is very good, if you have a num pad where the . is a ,, OTOH
 gcalctool does completely display what you typed.

Whats wrong with bc/dc? :)

-- 
If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing. --- Malcolm X


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121142920.GC32325@tal



Re: Guide / Tools

2012-11-21 Thread Morel Bérenger
Le Mer 21 novembre 2012 15:29, Chris Bannister a écrit :
 On Wed, Nov 21, 2012 at 10:05:33AM +0100, Ralf Mardorf wrote:

 galculator is very good, if you have a num pad where the . is a ,,
 OTOH
 gcalctool does completely display what you typed.

 Whats wrong with bc/dc? :)
$man bc

= Too Long; Did not Read
= Too Long; Did not Understood how to do a 3+4=, or a 21(base 16)=?(base
10)

$man dc
= reverse-polish ? What is it? It is surely not for simple calculations
and conversions...

When I need calculations, I want a tool which can understand simple
things. If I need complex ones, I will take my vim and do some
programming.
It sounds like bc have even conditional jumps, btw! I can not see the
point for common calculations.




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/5609ce8a75806fba312c6fa848d8da97.squir...@www.sud-ouest.org



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Thu, 22 Nov 2012 03:29:20 +1300
Chris Bannister cbannis...@slingshot.co.nz wrote:

 On Wed, Nov 21, 2012 at 10:05:33AM +0100, Ralf Mardorf wrote:
  galculator
  is very good, if you have a num pad where the . is a ,, OTOH
  gcalctool does completely display what you typed.
 
 Whats wrong with bc/dc? :)

German keyboard for an English Linux:

spinymouse@q:~$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software
Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 
1+1,1
(standard_in) 1: syntax error
1+1.1
2.1

The num pad on the German keyboard has got a , instead of a ..

Regards,
Ralf

PS: I wonder a little bit about everyday commands. For me jackd is an
everyday command, but I won't mention jackd in this context and IMO
make is something we shouldn't mention too. Perhaps we all should
ping the same Micrsoft server at the same time.  


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121164725.1b6ea7fd@q



Re: Guide / Tools

2012-11-21 Thread Lisi Reisz
On Wednesday 21 November 2012 15:47:25 Ralf Mardorf wrote:
 The num pad on the German keyboard has got a , instead of a ..

Use the . from the main part of the keyboard.  Known by the English as full 
stop, and by the United States Americans as point, I think.

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201211211632.07295.lisi.re...@gmail.com



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 16:32 +, Lisi Reisz wrote:
 On Wednesday 21 November 2012 15:47:25 Ralf Mardorf wrote:
  The num pad on the German keyboard has got a , instead of a ..
 
 Use the . from the main part of the keyboard.  Known by the English as full 
 stop, and by the United States Americans as point, I think.

It's not convenient if you want to type fast.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353516443.18590.10.camel@q



Re: Guide / Tools

2012-11-21 Thread Jochen Spieker
Morel Bérenger:
 Le Mer 21 novembre 2012 15:29, Chris Bannister a écrit :
 On Wed, Nov 21, 2012 at 10:05:33AM +0100, Ralf Mardorf wrote:
 
 galculator is very good, if you have a num pad where the . is a ,,
 OTOH
 gcalctool does completely display what you typed.
 
 Whats wrong with bc/dc? :)
 $man bc
 
 = Too Long; Did not Read
 = Too Long; Did not Understood how to do a 3+4=, or a 21(base 16)=?(base
 10)

| $ bc
| 3+4
| 7
| 
| 2^10
| 1024
| 
| (5+3)*(8-4)
| 32


Simple things are really simple in bc.

 $man dc
 = reverse-polish ? What is it? It is surely not for simple calculations
 and conversions...

That's probably only for majors in maths or computer science.

J.
-- 
I like my Toyota RAV4 because of the commanding view of the traffic
jams.
[Agree]   [Disagree]
 http://www.slowlydownward.com/NODATA/data_enter2.html


signature.asc
Description: Digital signature


Re: Guide / Tools

2012-11-21 Thread Siard
Jochen Spieker:
 Morel Bérenger:
  $man dc
  = reverse-polish ? What is it? It is surely not for simple
  calculations and conversions...
 
 That's probably only for majors in maths or computer science.

No, dc is a perfect tool for simple calculations and conversions.

Instead of entering e.g. 2+3= you use the so-called reverse-polish
notation: 2 3+
Once used to it, you'll probably never want anything else.

Imagine a stack:

0
0
0
0

After entering 2, it looks like this:

0
0
0
2

After entering 3:

0
0
2
3

After entering +:

0
0
0
5

In dc:

$ dc
2 3+p
5

As a final example, the calculation of (1 + V5)/2
(V means square root here) up to 6 decimal places:

$ dc
6k1 5v+2/p
1.618033


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121185520.66b88a1a.shiems...@kpnplanet.nl



Re: Guide / Tools

2012-11-21 Thread Soare Catalin
On Nov 21, 2012 7:57 PM, Siard shiems...@kpnplanet.nl wrote:

 Jochen Spieker:
  Morel Bérenger:
   $man dc
   = reverse-polish ? What is it? It is surely not for simple
   calculations and conversions...
 
  That's probably only for majors in maths or computer science.

 No, dc is a perfect tool for simple calculations and conversions.

 Instead of entering e.g. 2+3= you use the so-called reverse-polish
 notation: 2 3+
 Once used to it, you'll probably never want anything else.

 Imagine a stack:

 0
 0
 0
 0

 After entering 2, it looks like this:

 0
 0
 0
 2

 After entering 3:

 0
 0
 2
 3

 After entering +:

 0
 0
 0
 5

 In dc:

 $ dc
 2 3+p
 5

 As a final example, the calculation of (1 + V5)/2
 (V means square root here) up to 6 decimal places:

 $ dc
 6k1 5v+2/p
 1.618033


 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
 with a subject of unsubscribe. Trouble? Contact
listmas...@lists.debian.org
 Archive:
http://lists.debian.org/20121121185520.66b88a1a.shiems...@kpnplanet.nl


Hi,

Even after 4-5 years of using various Linux distros (which I also
recommend) like Red Hat (now Fedora) Suse/OpenSuse, Ubuntu, I still
consider myself a newbie, after I've seen what's being discussed on this
list. That, and also because I'm a sysadmin for a company using 101%
Microsoft products, I have fun with Linux at home.

Here's what I recommend:
Find yourself some book or if you don't have the time, tutorials on the
internet are much shorter to follow (don't just stop at one, 2 experts will
have 2 different opinions).
Then, after you've been playing with terminal commands, you could give
yourself small projects/homework like: learn scriping (bash, perl, python
or whatever) and do some automation with it -- automatic backup for some
files in your home dir or something similar. Also, what can/should try is,
if you happen to have another device at home that's able to run Linux and
can stay on for a very long time, build yourself a dns+dhcp server.

Good luck, and welcome!


Re: Guide / Tools

2012-11-21 Thread Gary Roach

On 11/21/2012 06:02 AM, Hugo Vanwoerkom wrote:

Crypticmofo wrote:

Hello

I'm new to debian and i hang out in the irc channels .. i realize 
that irc is there really for support so i wanted to take my question 
here ..


 From the more exprienced Debian users can you guys paste or post a 
list of the most common commands that you use


I already know of the docs like

debian-handbook
debian-kernel-handbook
debian-refernce
apt-common

And yes most of the manpages

What i really want are real life uses everyday ie.. do you use a lot 
of dpkg commands do you use  a lot of apt or aptitude commands everday


Also .. in your experience what are good handy tools we should have 
and learn that are a must to be able to navigate / use Debian




still for me:

mc (in a text VT)

Hugo


This whole thread points out a major problem with using Linux. There is 
no comprehensive, cross referenced, command dictionary anywhere. I have 
a C programming reference that was written by Kernegian and Ritchy way 
back when, which referenced the C commands by function, that I used to 
live by. We need something like this for the Linux / Unix community. I 
think a properly architectured WIKI would be a wonderful idea. 
Unfortunately I don't feel I have the knowledge necessary to start one. 
As an example, if I look up 'System Maintenance' I should get a sub list 
of Aptitude, dpkg, apt-get etc, with a quick blurb on each. A newbe 
could then make a choice of which package the wish to try. I've been 
using Debian linux for over 15 years and am still finding commands that 
are useful. The worst part is that I am loosing commands at about the 
same rate because of only occasional use. It is really frustrating when 
you know there is a command that you used 2 years ago that is exactly 
what you need but can't remember its name.


Gary R.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/50ad37cc.1070...@verizon.net



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 12:21 -0800, Gary Roach wrote:
 It is really frustrating when you know there is a command that you
 used 2 years ago that is exactly what you need but can't remember its
 name.

Is there a way to get some smarter autocompletion?

Assumed I can't rember the command name umount, I only remember mou
or something like that.

If I type mou and push the tab key I get

spinymouse@q:~$ mou
mount mount.fusemount.ntfsmountpoint
mountall  mount.lowntfs-3g  mount.ntfs-3g mousetweaks

If I would remember um, everything would be ok

spinymouse@q:~$ um
umask   umax_pp umount  umount.udisks
umount.udisks2

After that a --help or man for this hand full of commands should do the job.

For u

spinymouse@q:~$ u
Display all 133 possibilities? (y or n)

Regards,
Ralf


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353532591.19877.54.camel@q



Re: Guide / Tools

2012-11-21 Thread Joe
On Wed, 21 Nov 2012 08:02:56 -0600
Hugo Vanwoerkom hvw59...@care2.com wrote:

 Crypticmofo wrote:
  
  What i really want are real life uses everyday ie.. do you use a
  lot of dpkg commands do you use  a lot of apt or aptitude commands
  everday

I use dpkg when I'm in trouble, or if I need to install a .deb that
isn't in my usual repositories. Sometimes a system gets into a state
where the apt tools can't fix something, then it's time for dpkg. The
apt tools normally work, and are much more powerful, but sometimes you
need the brute force and ignorance of dpkg. The apt tools do in fact
use dpkg themselves, but they do it more carefully.

Dpkg-reconfigure is also useful when you need to restore the original
default configuration somewhere. I also occasionally use dpkg -l and
with --get-selections to keep track of what I have installed.

For the most part, I use aptitude non-interactive. I run a sid
desktop, and that needs frequent updates. If that fails with several
buggy programs or dependencies, as happens now and then with sid, I
switch to Synaptic, as I find that quicker when working out what can be
upgraded and what has to be left to fester for a while. 


  
  Also .. in your experience what are good handy tools we should have
  and learn that are a must to be able to navigate / use Debian
  
 
 still for me:
 
 mc (in a text VT)
 

Indeed. I never went the vi/emacs route since cooledit in mc does all
the admin work I need to do, and I don't do heavy text processing. And
my server doesn't have X, so mc is a useful semi-graphical file manager
and simple text editor combined. And I'm old enough to remember the
Norton Commander...

I use tail -f logfile probably once a week, today for fetchmail. It's
extremely useful in conjunction with iptables logging, see below, or
with your mail server of choice to debug rejection problems.

Some people prefer the command line to GUI tools, I'm one of those who
prefers to use a hand-written iptables script to a firewall tool. My
experience is that if there's one area where you need a complete and
accurate understanding of what's going on, it's firewalling. You can
waste a lot of time deducing what an auto-generated firewall is doing,
or a completely undocumented one in Someone Else's operating system. I
also use iptables logging as a quick-and-dirty packet sniffer for
network debugging. This pretty much requires that you write your own
script and understand the logic flow, and if you drop in a virtual
machine or VPN server, you don't have to rely on your firewall tool
being pre-configured to deal with these things as you would wish.

Other than these, I use mostly commands others have already mentioned.
I am aware that there's a vast array of commands I've never even heard
of, but I'm also aware that learning them en masse would be a waste of
time, as there's no way of remembering something you don't use often.

-- 
Joe


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20121121212805.00637...@jretrading.com



Re: Guide / Tools

2012-11-21 Thread Ralf Mardorf
On Wed, 2012-11-21 at 21:28 +, Joe wrote:
 I use dpkg [...] if I need to install a .deb

I do the same. Usually I build packages, instead of running make
install and I don't have my own repository.

  mc
 Indeed. I never went the vi/emacs route since cooledit in mc does all
 the admin work I need to do, and I don't do heavy text processing. And
 my server doesn't have X, so mc is a useful semi-graphical file manager
 and simple text editor combined. And I'm old enough to remember the
 Norton Commander...

A lot of people wish that mcedit would be the default, but often there's
just vi(m), ed and nano available.

I noticed that visudo isn't vi, but nano on my current Ubuntu. Nano
seems to be more comfortable than vi.

An editor with GUI perhaps should highlight syntax, so kate and gedit
perhaps are better than e.g. leafpad. OTOH Gvim could be used to learn
more about vi(m).

We didn't mention Ctrl+D for the terminal, to logout/exit until now.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353535612.19877.77.camel@q



RE: Guide / Tools

2012-11-21 Thread Mark Allums
 On Wednesday 21 November 2012 15:47:25 Ralf Mardorf wrote:
  The num pad on the German keyboard has got a , instead of a ..
 
 Use the . from the main part of the keyboard.  Known by the English as
full
 stop, and by the United States Americans as point, I think.

Depends on context.  Point for numerals, Dot for program code and URLs,
Period for written sentences.




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/002501cdc836$467b3040$d37190c0$@allums.com



Re: Guide / Tools

2012-11-20 Thread Zenaan Harkness
You might say where you're coming from - Windows, Fedora, ... ?

aptitude search blah (or apt-cache search blah)
aptitude show blah (or apt-cache show ...)
ip
route -n
ping

should get you going...


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caosgnsr6mprhe6ucgtstdcq2x_h_jqz8woc-yfdtuk4km++...@mail.gmail.com



Re: Guide / Tools

2012-11-20 Thread Ralf Mardorf
For Debian and Ubuntu I prefer to use
http://en.wikipedia.org/wiki/Synaptic_(software)
instead of command line. There's only one distro where I like the
command line for managing packages from repositories, but for DEBs and
RPMs IMO GUIs are more comfortable and especially Synaptic is a really
good GUI.

OTOH I prefer a terminal emulation to file browsers for many situations.
The tab-key does autocomplete commands and paths and if you have
forgotten a command it displays commands.

Being able to write simple shell scripts could be helpful.

For what usages do you need your computer?

If you are an averaged desktop user who only would turn off the
graphic in emergency cases I recommend to install midnight commander,
because mcedit is the easiest to use editor without a GUI. There's still
the need to learn the basics for using vi(m), because this is the most
used editor for some cases, OTOH something like visudo is easier to use
than a normal vi(m).

For specialist usages there are special mailing lists, they aren't for a
specific distro, but for specific usages using any Linux distro.

Hth,
Ralf


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1353481861.2626.25.camel@q