LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simple Command Help (https://www.linuxquestions.org/questions/linux-newbie-8/simple-command-help-289345/)

mhelliwell 02-12-2005 12:08 PM

Simple Command Help
 
Alright people (wow that sounded bossy), I would like to know some simple commands I can use in Konsole. I already know how to install something with it, but that's about all. What other commands are there?:confused:

slakmagik 02-12-2005 12:13 PM

$ <tab><tab>
Display all 1919 possibilities? (y or n)

And I have a light system. You'll have to be more specific - which objectives do you wish to accomplish? 'man -k issue-of-interest' should give you some ideas.

mhelliwell 02-12-2005 12:15 PM

Alright... um... Well can you give me some sort of example? Like can it format Floppies? Or what? I dono....I'm a total Linux noob.

slakmagik 02-12-2005 12:33 PM

Code:

$ man -k format | grep flop
fdformat            (8)  - Low-level formats a floppy disk
mformat              (1)  - add an MSDOS filesystem to a low-level formatted floppy disk
superformat          (1)  - format floppies

Sure. (grep's another good command. ;) ) Not to mention all the mk*fs commands.

Basically, the core commands are your shell and the stuff found, logically enough, in a package called 'coreutils' along with a few other independent tools. You 'ls' to get directory listings, 'cd' to change those directories, 'mv' to move or rename files, 'cp' to copy them, 'rm' to remove them, 'cat' or 'less' or 'tail' or 'head' to view them in various ways, 'sed' and 'grep' and 'cut' and 'sort' and 'uniq' to process them or alter them, and on and on.

I've got an alias called 'topcom' which processes my ~/.bash_history file to show the most used commands.
Code:

alias topcom='sort ~/.bash_history | cut -d\  -f1 | uniq -ci | sort -r | less'
So there's 'alias', 'sort', 'cut', 'uniq', and 'less'.

Currently it shows the top 10 (which I could get with 'head' rather than 'less') to be ls, man, grep, sed, less, cd, find, cdp (an alias to cd to /var/log/packages), su, and mplayer, though these have mostly been incidental because I've been chrooted a lot lately - which is yet another command - if you want an environment that doesn't directly affect the rest of your system, 'chroot' is the ticket.

Like I say, there's thousands on the one hand, and a few dozen core ones.

beaucoup 02-12-2005 12:34 PM

http://www.tldp.org/LDP/intro-linux/html/index.html

is a pretty good guide, or, more specifically, the commandline quickstart section:

http://www.tldp.org/LDP/intro-linux/...ect_02_02.html

I also found that the O'Reilly pocket guide is a good (and inexpensive!) reference, with a lot of everyday stuff broken down by section.

http://www.oreilly.com/catalog/linuxpg/

The shell can be intimidating at first, but once you get the hang of it, you'll wonder how you ever got some things done without it :)

heema 02-13-2005 02:36 AM

there is also

http://linuxcommand.org/index.php

when u learn the commands , you could then start experimenting with bash scripts as it will make your life a whole lot easier ;)


All times are GMT -5. The time now is 05:13 AM.