PDA

View Full Version : List of linux commands



rickenbacherus
05-11-2003, 10:23 PM
For those of you needing a complete (more or less) list of Linux commands here (http://www.onlamp.com/linux/cmd/) you go.
Better yet->Kmenu>Help>UNIX manual pages. EXCELLENT RESOURCE

A few quick ways to glean info about your box-


cat /proc/pci
cat /proc/interrupts
cat /proc/bus/usb/devicecs
cat /proc/scsi/scsi
cat /proc/cpuinfo
cat /proc/cmdline
procinfo -f
free -m
X -version
df -h
du / |sort -nr|most
(will take a while on large drives)
xvidtune -show
xrandr|grep \*
nmap localhost


turn on/off energy star features:

xset -/+dpms

To kill something that just won't die:

xkill

Mini How-to get shtuff done in Linux

Text editors
There are many text editors that you may choose from. Usually (not always) mc (Midnight Commander)comes with most distro because:

1)It's easy to use/learn.

2)You can install .deb and .rpm with mc.

3)It does ftp.

4)It's the same whether using a GUI or in text mode.

3) It's more nutritious than corn flakes.

Look at your Kmenu(If you use KDE of course). There should be a menu of text editors. kedit, xedit, kate (very excellent) emacs and so on. You can use any of them. Hell you can use Konqueror and default kedit for that matter just like M$ exploder. That's actually very easy to use.

*5 star tip-o-the-day*
Open a term,
konqueror
right click on any file/folder>Properties>Permissions tab
--------->If launched as root a very dangerous tool!!
It would be good to get away from using the start menu so much anyway-learn to launch apps from the CLI-many of them you can guess correctly. You can right click on the desktop>run program>blah and away you go. But the CLI is alot faster than a menu.

Alternatively, if you have a term open (I always have several) you can just enter the name of the text editor, the path and filename and away you go like this:

mcedit /etc/X11/XF86Config-4

That can be translated like this:

mc (use Midnight Commander) edit (to edit) /etc/X11/ (the path to the file) XF86Config-4 (the filename).

You can also do this:

cd /etc/X11
mcedit XF86Config-4

It's the same thing. You just don't need to provide a path because you are already there. You are said to be "in that directory". How do you know which directory you're in?

pwd

Present Working Directory

What if you don't know what the exact name of the file is?

cd /etc/X11
ls

Better yet:
The TAB key completes entries for you. Just type the beginnig letters of a path or file and hit TAB- you'll see.

To start a service on boot add a script to /etc/init.d and do:
sudo update-rc.d <scriptname> defaults

Dave_Bechtel
05-12-2003, 10:41 PM
--Don't forget my Linux tips page as well:

http://wolfrdr.tripod.com/linuxtips.html


For those of you needing a complete (more or less) list of Linux commands here (http://www.onlamp.com/linux/cmd/) you go.

oscar
05-13-2003, 05:02 AM
very useful, both.

thanks

rickenbacherus
05-14-2003, 07:11 AM
--Don't forget my Linux tips page as well:


hay caramba Dave- that's alot of info there. Maybe you should call it a crash course. You just won a bookmark in Konqueror. (Sorry it's all the cheap-assed committee could afford).

And you thought I needed a life ! "P

oscar
05-14-2003, 07:01 PM
my simple answer to a FAQ ...But where is diskcopy? :lol:

----------------------------------------------------------

# copyleft 2003 by oscar - script to clone diskettes

#!/bin/bash


clear
echo Put the SOURCE floppy into disk-drive
echo ENTER to continue - Ctrl+C to abort
read

echo ...reading the SOURCE disk...

dd if=/dev/fd0 of=/tmp/floppy.img

echo
echo Type Nš of COPIES you want - Ctrl+C to abort
read n

i=1

while [ $i -le $n ]
do echo
echo "COPY Nš $i - Put a formatted floppy into disk-drive"
echo ENTER to continue when ready...
read
echo ...writing a COPY...
dd if=/tmp/floppy.img of=/dev/fd0
i=`expr $i + 1`
done

rm -f /tmp/floppy.img

echo
echo Done
echo

------------------------------------------------------------

Dave_Bechtel
05-15-2003, 07:45 AM
:oops: Aw gee, it ain't all that. ;-)

--Feel free to save it to local disk (ya never know when tripod could go down) and also mirror it, as long as you leave my name as the original author.



--Don't forget my Linux tips page as well:


hay caramba Dave- that's alot of info there. Maybe you should call it a crash course. You just won a bookmark in Konqueror. (Sorry it's all the cheap-assed committee could afford).

And you thought I needed a life ! "P

rickenbacherus
06-02-2003, 10:07 PM
If you are using KDE there is an excellent resource for most all commands.

Kmenu>Help>UNIX commands.

Very easy to use and navigate. man pages converted to easy to use text.

Pietro Bonacorsi
07-02-2003, 08:40 AM
For Italian guys I suggest:

http://www.informasiti.com/Appunti/HTML/a21.html

Hi All

bxb32001
10-24-2003, 09:22 AM
Hi Dave,

I was trying to access your linux tips page... problem is, tripod sites, as well as other free web space providers are blocked by the great firewall of (the country I'm in)... just the way it is around here...

I wonder if there is a way around this.... hmmmm... I can mirror it for you here if you can send to me the files... I hope this is okay with you...


- Bryan

Dave_Bechtel
10-24-2003, 08:44 PM
--I tried emailing and PM'ing you from the board, neither work. Pls send email to kingneutron AT yahooNOSPAM dot com (remove nospam).


Hi Dave,

I was trying to access your linux tips page... problem is, tripod sites, as well as other free web space providers are blocked by the great firewall of (the country I'm in)... just the way it is around here...

I wonder if there is a way around this.... hmmmm... I can mirror it for you here if you can send to me the files... I hope this is okay with you...


- Bryan

Cuddles
12-14-2003, 06:06 PM
Ok Folks,

Being a fresh newbie to all this, Knoppix/Linux/Debian/Unix, I'd like to keep all of this, but I'm running out of postie notes...

Is all these great tips & tricks stuff going to be included, or is it already included, into the Main FAQ sheets found here on Knoppix, under the DOCS ???

After I go full-blown to Knoppix/Debian at the end of the year, with a new system designed for it, I'm going to need those resources. Since the IE I am currently using will evaporate, and so will all the Address Book and Bookmarks I have in both IE and Outlook, I'm going to have to reset everything back to ground zero again.

I would like to personally thank everyone here on Knoppix.Net for all the assistance, and future assistance, in this journey from MS "domination" to being not only paroled, but released from custody that is known as MS :)

Amazing the journey has been, it all started when someone I knew handed me a "strange" CD-ROM with the words "Knoppix 3.2" half-scribbled on it, and said, "can you get this thing working?"

Thanks !!!
Cuddles

stonent
12-25-2003, 09:07 AM
I'm curious how you get info with xkill? I just use it to zap programs that are not responding.

Ander
01-03-2004, 02:26 PM
After I go full-blown to Knoppix/Debian at the end of the year, with a new system designed for it, I'm going to need those resources. Since the IE I am currently using will evaporate, and so will all the Address Book and Bookmarks I have in both IE and Outlook, I'm going to have to reset everything back to ground zero again.

Congratulations on your choice! Don't throw away your bookmarks and address book, though.

You can save your bookmarks as an HTML file:

(1) On IE's File menu, click Import and Export.
(2) Export your bookmarks as an HTML file.
(3) Save the file to a floppy.

Then, in Linux, import it into Mozilla (which is much better than IE anyway):

(1) On Mozilla's Bookmarks menu, click Manage Bookmarks.
(2) On the Bookmark Manager's Tools menu, click Import.
(3) Select the bookmark file you saved from IE, then click Open.
(4) Your imported bookmarks (including folders) are added to the bottom of your Mozilla Bookmarks list.

(Don't forget to upgrade to Mozilla 1.5 first. For some reason, Knoppix comes with v1.0, which is pretty old now.)

I also understand that Mozilla can import Outlook address books into its built-in email client. In your case, you could install the Windows version of Mozilla; import your Outlook addresses; save the addresses in Mozilla's format; then re-import it with Linux Mozilla.

If you want more details, just look around on the Web and you'll see posts from other people who've done this stuff.

Cheers, Ander

rickenbacherus
01-09-2004, 03:07 PM
I'm curious how you get info with xkill? I just use it to zap programs that are not responding.

Please see the edited version. :)

Blerghh
01-18-2004, 02:05 PM
Hi Dave,

I was trying to access your linux tips page... problem is, tripod sites, as well as other free web space providers are blocked by the great firewall of (the country I'm in)... just the way it is around here...

I wonder if there is a way around this.... hmmmm... I can mirror it for you here if you can send to me the files... I hope this is okay with you...


- Bryan
Don't worry, you can now see the page at www.d-white.co.uk/linuxtips.html
Dave, if you dont like it, tell me and I'll remove it

Dave_Bechtel
01-19-2004, 04:01 AM
--Looks cool. It doesn't get updated very often, but try to keep an eye out (once a month or so) for changes. Whenever I update a section I always change the date in the table.

--Thanx for the mirror. :)



Hi Dave,

I was trying to access your linux tips page... problem is, tripod sites, as well as other free web space providers are blocked by the great firewall of (the country I'm in)... just the way it is around here...

I wonder if there is a way around this.... hmmmm... I can mirror it for you here if you can send to me the files... I hope this is okay with you...


- Bryan
Don't worry, you can now see the page at www.d-white.co.uk/linuxtips.html
Dave, if you dont like it, tell me and I'll remove it

rickenbacherus
01-31-2004, 04:16 PM
To generate ssh hostkeys:


ssh-keygen -b 1024 -t rsa1 -f /etc/ssh/ssh_host_key -N ""
ssh-keygen -b 1024 -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -b 1024 -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""


Then just start the daemon:
/etc/init.d/ssh start

Mustang64
02-13-2004, 07:21 PM
OK - I looked through Dave's Tips. I think if I knew more about what I was looking at I may understand what it all means... :?

Can anybody here suggest a good book or link (prefer a FREE link) for those of us who need a little hand-holding? Specificaly looking for Knoppix 3.3 info.

OK, I have my asbestos overcoat on... :wink:

rickenbacherus
02-14-2004, 12:59 AM
OK, I have my asbestos overcoat on... :wink:

Now why do you think you'd get flamed for that?

The Linux Newbie Admin Guide (http://linux-newbie.sunsite.dk/) is a great place to start.

Bash Scripting (http://www.tldp.org/LDP/abs/html/)

tldp.org (http://tldp.org/)

Cuddles
10-11-2004, 03:59 PM
Now that I've gotten a little more "intellegent" with my knowledge of Linux, here are a few good commands to help those who are interested in what is "running" on there system, who is logged in on there system, and what "connections" are being "listened" to, and "established", on there systems:

ps -auxw
( to get a "top" listing of everything running on your system, services, programs, and "zombies", for all users )

netstat -natu
( to get a listing of "Active Internet connections (servers and established)" from your system )

rpcinfo -p
( to get a listing of all RPC processes from the portmapper, on the local system )

and lastly, from a friend,
users
( to get a list of all users currently logged in to your system )

Most of these commands have an associated man for them, and have additional command line switches for more information, or less, output - the man page will also explain a lot more of what the program "monitors", or outputs information for...

Hope, I do good, and no one else hasn't hit these before,
Ms. Cuddles

carioca
04-24-2008, 02:13 AM
hi, linuxers,

by browsing at the google I found out a linux commands directory with 687 commands roughly in order to help you out. mainly the newbyes like myself. nice reading! look them up at

http://www.linuxdevcenter.com/linux/cmd/#a

ps: I suggest the moderators to fix this link at the knoppix forum.

:D
:idea:
:arrow:

Harry Kuhman
04-24-2008, 02:48 AM
ps: I suggest the moderators to fix this link at the knoppix forum.
I'm not sure what you are asking for here.

Most of us already know that if you search Google for information on Linux that you will come up with more than you can ever read. You have apparently found a list of commands, and now posted a link to that in this forum in a thread about commands. And it's one of a very few threads that are "sticky', that is, they stay at the top of the forum and don't move down with age. I'm not clear on what more you would want a moderator to do.

The forum is a good place to ask questions, have discussions and exchange information. This website also includes a wiki, a user edited set of documentation on Knoppix. Any user can register and edit the wiki, not just moderators. Because it's organized more like a set of reference documents and not like a discussion forum, things in the wiki tend to be much easier to find. In general if one is posting information, I suggest updating the wiki and then putting a link to your work in these forums. I found that this is more efficient than retyping the information the next time someone asks the question rather than search through all of the forums, some of which have hundreds of pages of threads.

Of course, one should not post someone else's work in the wiki without their permission. In a case like this, it would be best to find an appropriate place and post the link, as you did here, not cut and paste the list of commands from someone else's site into the wiki.