Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Couple Of Newbie Linux Questions
Yakoob
post Dec 16 2003, 02:28 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 9
Joined: 25-November 03
Member No.: 1,868



First of all...
Is there some kind of cfg file executed at the linux startup? So when I want to mount my other HDD I don't have to login as root and mount it manually every time? I'm thinking about equivalent of autoexec.bat from windows...

Second, is there a key combination to kill an aplication/reboot/etc ? Cause some programs just hang up on me and I didn't know what to do - I guess pressing the reset button on my pc isn't such a good idea... Something like Alt+F4 /ALT+CTRL+DEL in windows...

Ummm, that's it I guess... I'm using RedHat 7.1 (?)... are there any other tips a new linux user should know?

Thanks in advance!
Go to the top of the page
 
+Quote Post
michaelk
post Dec 16 2003, 06:19 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



Actually there are lots of config files and there usually located in the directory called /etc. The file your interested in is /etc/fstab. You need to be logged in as root to modify anything in this directory.

See the man pages for fstab and mount for additional help.

You do not specify what filesystem that is on the other hard drive or the partition number. If you do not know then you can use RH's configuration GUI or the following console command:
fdisk -l (a small L)
Then edit the fstab file and add the following

/dev/hdxy /mnt/<other HDD> fs_type defaults 1 2

You will need to create a directory to mount the hard drive.
If the drive is a vfat then use this:
/dev/hdxy /mnt/<other HDD> vfat umask=000,users 0 0

Where x is (if you have IDE drives):
1st controller master - a
1st controller slave - b
2nd controller master - c
2nd controller slave - d
etc...
and Y is determined by the output of fdisk.

The partition will mount at boot.

The kill or killall command will terminate processes that misbehave. For the kill command you need the PID number, with the killall command all you need is the application name. You can get the the PID from the output of ps, the ax option lists all processes. i.e.

kill 1045
killall app_name

Tips? Go to the local library and read up on linux or even better go to your local bookstore and purchase a linux reference manual. IMO there is nothing like having written material to browse through while sitting next to the computer trying to figure out or find an obscure command. The man pages is a quick reference guide if you no what command you want to use. i.e. (in a console window)
man mount

Do not be afraid to search the web. You will find lots of forums to find answers for new users questions. Besides this site there is www.justlinux.com and www.linuxquestions.org just to mention a couple.
Go to the top of the page
 
+Quote Post
Yakoob
post Dec 16 2003, 07:16 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 9
Joined: 25-November 03
Member No.: 1,868



Thanks!

To mount my drive, I actually use: mount /dev/hdb1 /windows/c (I created that directory)
as for the killall, what is the application name? is it like a.out or what (how do I retreive it)?
But basically I was asking for a key-combination cause a few times my linux hang up in game fullscreen or something like this, so I don't have an access to the terminal...

About the book thingy, I know, I've been thinking about it too but my local library doesn't have any and generally pc books are pretty expensive, so I'd rather buy one. so if you know any1 good just let me know, if you don't, I'll find something on my own... laugh.gif
Go to the top of the page
 
+Quote Post
michaelk
post Dec 16 2003, 09:09 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



Ctrl-Alt-F1 will switch to console mode where you can type in the command kill or killall.
Go to the top of the page
 
+Quote Post
Yakoob
post Dec 16 2003, 10:32 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 9
Joined: 25-November 03
Member No.: 1,868



uh-huh, but, how do I retreive the app name? is there some command that displays all the programs currently running...???
Go to the top of the page
 
+Quote Post
hughesjr
post Dec 17 2003, 12:34 AM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



ps -ef will list all the running processes....

top will show you all processes and their memory and cpu usage.

ctrl-alt-backspace will kill your current X windows session...but that can cause problems.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th December 2017 - 05:13 AM