Go Back   PCMech Forums > Linux Support > Linux OS and Software Assistance

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 11-18-2000, 06:50 AM   #1
Member (3 bit)
 
Join Date: Sep 2000
Posts: 7
Question

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 =]
resetor is offline   Reply With Quote
Old 11-18-2000, 03:43 PM   #2
Member (10 bit)
 
Join Date: Apr 1999
Location: Maryland, USA
Posts: 775
Quote:
Originally posted by resetor
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 =]
1. df -h

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)

Dave22 is offline   Reply With Quote
Old 11-19-2000, 11:44 AM   #3
Member (3 bit)
 
Join Date: Sep 2000
Posts: 7
Smile

Thanks
resetor is offline   Reply With Quote
Old 11-20-2000, 10:22 AM   #4
Premium Member
 
Statica's Avatar
 
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
Statica is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:12 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2