Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Distribution Version & Startup

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
GB
Hello Guys,

I'm using a new box that i had passed to me by a friend, and yet i have no idea what Distribution the box has on it, or what items are running at startup.

Is there an easy way from the terminal interface to tell iether of these things?

Thanks,

Rob
 
To find out name and version (not allways showing the distribution name):
Code:
uname -a
Often you find distribution-names in /etc/issue(.net), /etc/lsb-release and /etc/motd.

To find out the runlevel:
Code:
runlevel
to find out which scripts run at startup:
Code:
ls /etc/rcX.d/
with X=number of runlevel

seeking a job as java-programmer in Berlin:
 
Additionally, most distributions leveraging the Redhat lineage (RedHat, Fedora, CentOS, etc) have a utility called 'chkconfig'

try

'chkconfig -l' or perhaps it's
'chkconfig --list'

something like that. It shows all AVAILABLE commands for startup, and their setting to start at which runlevels

D.E.R. Management - IT Project Management Consulting
 
Hello Guys,

Thanks for the replies they were pretty helpfull. although i couldnt get the 'runlevel' command to respone i was able to browse into my rc.d folder and find all of the scripts that were occuring on boot.

I'm very new to linux and finding myself a little lost, but its been a very productive day and i've certainly learned alot.

Next on the agenda is getting my head around the idea of flashing my Kernel and compiling binarys and installing stuff on the system, i feel tommorow may be a long day lol... give me back my windows!

Thanks,

Rob
 
Also try looking for any /etc/*release files and see what's in there. Try /sbin/runlevel perhaps, it may not be in your PATH.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top