Sponsored Content
Operating Systems Linux Gentoo how to edit linux system files? Post 302273754 by Corona688 on Monday 5th of January 2009 05:24:37 PM
Old 01-05-2009
Quote:
Originally Posted by Dragster93
Oh yeah... Sorry about that, dude!

So, will I be able to edit any of those files while running linux or not?
If you mean libraries, then probably not, at least not directly. These libraries are all translated into machine code before they can be used, the linux-equivalents of .exe and .dll files. They do not contain source code; the system understands them but reading them yourself would be like trying to read a novel with a microscope.

You could download source code for a library, build your own version, then coerce your system into temporarily using your new ones for something(I advise against replacing them outright, that's just begging for trouble).
Quote:
First of all, can I even view those files while running linux or not?
You can download and view the source code they were made from -- it'll be pure text. If you mean viewing the raw kernel and libraries themselves, no, they're raw machine language. You could open them up in some editor if you really wanted but they'd look like garbage.
Quote:
Also, can you explain to me how these other versions of linux have been created? I mean, how did those creators get the source code of linux?
They probably downloaded it from kernel.org . Different distributions of linux usually are more about differences in the software bundled with it than changes in the kernel itself, usually. Ubuntu uses the Gnome window manager, for instance, while Kubuntu uses KDE, no changes to linux were needed for that.
Quote:
Is it so simple that I can just google it?
You don't quite know what you're asking yet, learning more about C programming would be a good direction. Forget the kernel for a while and figure out how things like compilation and libraries work, and you'll have a much better idea of what the kernel is and how its made.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help to access/mount so to access folder/files on a Remote System using Linux OS

Hi I need to access files from a specific folder of a Linux system from an another Linux System Remotely. I know how to, Export a folder on One SCO System & can access the same by using Import via., NFS in the Sco Unix SVR4 System using the scoadmin utility. Also, I know to use mount -t ... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies

2. UNIX for Dummies Questions & Answers

Edit Multiple Files in VI

Here's what I have... $ vi foo1 - open foo1 and work around for a while. I yank a few lines into a buffer and then :w to save. Next I :e foo2 to open foo2 and paste my buffer. I :w to save, but I would like to then be able to go directly back into foo1 where I was before I opened foo2. ... (4 Replies)
Discussion started by: djschmitt
4 Replies

3. Windows & DOS: Issues & Discussions

RTF files can they be converted once they are on linux system

:D mount -t vfat /dev/hda1 /mnt my dillemma is simple i have psion 5 mx wich is an epoc type machine not only does it only work on windows as far as I know but I have to convert the files (the usual stuff!) sometimes a humen error happens and the files that I want to transfer to the linux drive... (7 Replies)
Discussion started by: moxxx68
7 Replies

4. UNIX for Dummies Questions & Answers

edit _config files

Hi, I am trying to edit sshd_config file through the vi editor. logged on as a root. when I try to write the file I get: Read-only file, not written; use ! to override when i type :w!, I get: Error: etc/ssh/sshd_config Permission denied. I want to change: #PermitRootLogin no to yes freeBDS... (6 Replies)
Discussion started by: emosms
6 Replies

5. UNIX for Dummies Questions & Answers

How files can be transferred from one system to another securely using Linux?

i need to know how files can be transfered from one system to another securely in linux. (9 Replies)
Discussion started by: bibing
9 Replies

6. Shell Programming and Scripting

Edit .profile to connect to Oracle- Linux 2.6.9-89

Hi, I want to connect to sqlplus through unix. I got the command to do it. But I was getting error: ./executeSQL.ksh: sqlplus: not found Then when I googled I found that we have to include Oracle Client path in .profile file. I don't know how to do it. Also I don't have permissions to... (2 Replies)
Discussion started by: dips_ag
2 Replies

7. UNIX for Dummies Questions & Answers

Edit files with cat

Hi, sometimes one wants to edit files while still seeing output of earlier commands in terminal. I've found out that cat test && cat - >> test does the trick for displaying file content and adding lines but I believe I saw a much cooler command that was also able to erase lines from files. I cannot... (6 Replies)
Discussion started by: scarleo
6 Replies

8. AIX

Accessing files on AIX system from Linux system

I have a following requirement in production system 1 : LINUX User: abcd system 2: AIX (it is hosting a production DB) Requirement user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora ,... (2 Replies)
Discussion started by: amitnm1106
2 Replies

9. Shell Programming and Scripting

Gunzip and edit many files

Experts - I have an requirement to gunzip and edit many files in a pair of directories. I have two scripts that work great when run separately, but I'm having problems combining the two. The goal is to gunzip the files found in the first script and pipe them to the bash/sed script and... (9 Replies)
Discussion started by: timj123
9 Replies
SULOGIN(8)						       System Administration							SULOGIN(8)

NAME
sulogin - Single-user login SYNOPSIS
sulogin [options] [tty] DESCRIPTION
sulogin is invoked by init when the system goes into single user mode. The user is prompted: Give root password for system maintenance (or type Control-D for normal startup): sulogin will be connected to the current terminal, or to the optional tty device that can be specified on the command line (typically /dev/console). After the user exits the single-user shell or presses control-D at the prompt, the system will continue to boot. OPTIONS
-e, --force If the default method of obtaining the root password via getpwnam(3) from the system fails, manually examine /etc/passwd and /etc/shadow to get the password. If they are damaged or nonexistent, sulogin will start a root shell without asking for a password. Only use the -e option if you are sure the console is physically protected against unauthorized access. -p, --login-shell Specifying this option causes sulogin to start the shell process as a login shell. -t, --timeout seconds Specify the maximum amount of time to wait for user input. By default, sulogin will wait forever. -h, --help Print a help message. -V, --version Output version. ENVIRONMENT VARIABLES
sulogin looks for the environment variable SUSHELL or sushell to determine what shell to start. If the environment variable is not set, it will try to execute root's shell from /etc/passwd. If that fails it will fall back to /bin/sh. AUTHOR
sulogin was written by Miquel van Smoorenburg for sysvinit and later ported to util-linux by Dave Reisner and Karel Zak. AVAILABILITY
The sulogin command is part of the util-linux package and is available from Linux Kernel Archive <ftp://ftp.kernel.org/pub/linux/utils /util-linux/>. util-linux Jul 2012 SULOGIN(8)
All times are GMT -4. The time now is 06:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy