Unix/Linux Go Back    


Gentoo Gentoo Linux is a versatile and fast, completely free Linux distribution geared towards developers and network professionals.

how to edit linux system files?

Gentoo


Tags
hack, linux, open, open-source, opensource, shell script, shell scripting, unix scripting, unix scripting basics

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-25-2008
Dragster93 Dragster93 is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 6 January 2009, 3:39 PM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
how to edit linux system files?

i had heard that linux is open source.....which meant that i could edit it.
so how do i start out? i've already downloaded it. the name's "puppy linux".....someone please reply quick!!!

and by the way, may i know what shell scripting is?
Sponsored Links
    #2  
Old Unix and Linux 12-25-2008
sad_angle's Unix or Linux Image
sad_angle sad_angle is offline
Registered User
 
Join Date: Jun 2001
Last Activity: 14 December 2011, 5:38 PM EST
Location: Wisconsin Dells, WI
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Please read
The Free Software Definition - GNU Project - Free Software Foundation (FSF)

For information of what is a shell script
The Free Software Definition - GNU Project - Free Software Foundation (FSF)

Good luck
Sponsored Links
    #3  
Old Unix and Linux 12-26-2008
Dragster93 Dragster93 is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 6 January 2009, 3:39 PM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by sad_angle View Post
dude i visited the link.....but i still didnt understand where to find the linux system files.....
    #4  
Old Unix and Linux 12-26-2008
pludi's Unix or Linux Image
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,521
Thanks: 38
Thanked 335 Times in 308 Posts
Please read up onbefore moving to such advanced topics like C programming, GCC, system calls, assembler and kernel hacking.

Also, it might be a good idea to get some experience in using a Linux system before starting to modify it's source.
Sponsored Links
    #5  
Old Unix and Linux 12-28-2008
Dragster93 Dragster93 is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 6 January 2009, 3:39 PM EST
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by pludi View Post
Please read up onbefore moving to such advanced topics like C programming, GCC, system calls, assembler and kernel hacking.
well, i read up on it and thnx 4 the links.....they were quite useful!!!


Quote:
Originally Posted by pludi View Post
Also, it might be a good idea to get some experience in using a Linux system before starting to modify it's source.
but i still don't get it. how do i edit linux if i don't know where the system file is located? or is it that i have to compile my own version of linux to do that. if its like that, then why would they call it open source? open source means it code is editable right?
Sponsored Links
    #6  
Old Unix and Linux 12-29-2008
pludi's Unix or Linux Image
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,521
Thanks: 38
Thanked 335 Times in 308 Posts
In a nutshell:
  • Open Source means that you can get the source and modify it if you wish. But to run it you have to compile those changes
  • The Linux kernel always has to be compiled to run, since it's the operating system itself and thus can't be interpreted like a shell script.
  • The Linux kernel is usually located in /boot/, look for a file called vmlinuz* or similar
  • Other system files, like libraries and essential executables are located in /sbin, /bin, /lib and /usr/lib. This include the glibc and alike
  • The Kernel source can be installed through your distributions source package, or you can download it from kernel.org
Again, if you want to start Kernel hacking, start by installing a distribution, getting used to it, move on to the command line and it's tools, so that you get a feeling for what the kernel does and how changes could affect it's behavior.
If you want a fast dive straight into it, start with Gentoo or Slackware, and later use that to build a LFS system.
Sponsored Links
    #7  
Old Unix and Linux 12-29-2008
mark54g mark54g is offline Forum Advisor  
Registered User
 
Join Date: May 2008
Last Activity: 26 July 2013, 11:43 AM EDT
Location: Northeastern United States
Posts: 918
Thanks: 1
Thanked 61 Times in 58 Posts
As has been explained to you, Linux (the Kernel) and many of the accompanying software is open source.

This means that you are free to edit the files as you wish without fear of reprisals in the form of copyright violations and such for the changes. Other software vendors do not allow you to make these changes to their code as they are proprietary.

Linux does not have "System Files" in so much as what you seem to be describing.

You cannot simply go in and muck about.

You CAN however change parameters of running machines, and do a lot more. What do you wish to change and what are you trying to learn from this?

read up on sysctl and how it can change parameters of the kernel on a running machine. However, be aware that changes you make can disrupt running processes as well as the stability of the machine.

As for editing files in linux, also look up "vi" or "vim" and use that to edit the files themselves, as they are text based editors found on nearly every UNIX or UNIX-Like operating system.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
is it really not possible for me to edit the etc/group & the etc/passwd files? whatev3r UNIX for Dummies Questions & Answers 2 12-11-2008 10:26 AM
Application to create/edit chm files agasamapetilon UNIX and Linux Applications 2 10-13-2008 10:12 AM
RTF files can they be converted once they are on linux system moxxx68 Windows & DOS: Issues & Discussions 7 09-12-2004 01:26 PM
Edit Multiple Files in VI djschmitt UNIX for Dummies Questions & Answers 4 10-07-2003 01:19 PM
how to edit large files using vi nazri UNIX for Dummies Questions & Answers 3 06-15-2001 09:18 AM



All times are GMT -4. The time now is 03:12 AM.