|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (3 bit)
Join Date: Sep 2000
Posts: 7
|
Hi!
I'm quite newbie in Linux, and I'd like to know the commands for the following. (if there are any?) - A command to report me how much free space do I have on my hard drive. - Dir /p ?? - How to "kill" a .. um.."one of those windows I can switch to with ALT + F1-7 ?" Hope someone understood that =] |
|
|
|
|
|
#2 | |
|
Member (10 bit)
Join Date: Apr 1999
Location: Maryland, USA
Posts: 775
|
Quote:
2. ls | more OR ls -l | more 3. Not sure about that one but I'll take a shot! The command to kill a process is: 'kill PROC_ID' or... 'kill -9 PROC_ID' (if it's stubborn). Example: kill 456 The "PROC_ID" is the process ID number of that particular process you want to kill. You'd find it by issuing the 'ps -ax' command and look for the program that the window corresponds to. Here's a sample output of 'ps -ax': 614 ? SW 0:00 [kdm] 626 ? S 0:29 kwm 642 ? S 0:01 kbgndwm 643 ? SW 0:00 [startkde] 647 ? S 0:07 /usr/bin/autorun --interval=1000 --cdplayer=/usr/bin/ 671 ? SW 0:00 [kaudioserver] 672 ? S 0:01 kwmsound 675 ? S 0:01 maudio -media 1536 678 ? S 0:10 kfm 679 ? S 0:00 krootwm 680 ? S 0:12 kpanel 686 ? S 0:03 konsole -restore konsolerc.1 -icon konsole.xpm -minii 687 pts/0 SW 0:00 [bash] 2744 ? S 0:00 [smbd] The numbers in the first column on the left are the process IDs. The last column on the right is the process or program's name. So if I wanted to kill the window that had "bash" running in it, I'd type 'kill 687' (without the quotes of course) |
|
|
|
|
|
|
#3 |
|
Member (3 bit)
Join Date: Sep 2000
Posts: 7
|
Thanks
|
|
|
|
|
|
#4 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
Just a note resetor
you should try reading the manpages. for example
'man ps' or 'man df' etc etc are invaluable. Cheers |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|