General :: How To Edit Inittab File

Mar 25, 2010

The default setting of linux is run level 5 (Red Hat 9) I want to use my system in Runlevel 1. For that purpose i 1st check the permission which were

-rw-r--r--

I want to edit the File " vim /etc/inittab " in the terminal . which line should i edit so I may use it in a single mode.

2-The second thing i want to ask that before editing any important file which are /etc like "inittab" can i 1st make it's copy and keep it in my home directoty so,in case of any mistake I can get my original file?

View 2 Replies


ADVERTISEMENT

General :: Editing Inittab File From Grub?

Jul 27, 2010

During my several experiment on linux I accidentally put the default runlevel to the value 6..thus before starting its going to restart ..currently running mint 9. there is only one way that somehow i can edit that file from grub command line.

View 4 Replies View Related

General :: When Start Computer It Shows The Message OfINIT:No Inittab File Found?

Dec 22, 2010

i am using red hat linux 5.0 when i start my computer it shows me the message ofINIT:No inittab file foundEnter run level:i dont what to enter here if anybody know then

View 7 Replies View Related

Red Hat / Fedora :: Use Inittab At The Inittab To Initiate A Program At Startup?

Jul 5, 2010

1. I am using CentOS 5.4 and I try to use inittab at the etc/inittab to initiate a program at startup

2. Below is my script and saved as heritrix.sh

#!/bin/bash
export HERITRIX_HOME=/root/heritrix-1.14.3
cd $HERITRIX_HOME
chmod u+x $HERITRIX_HOME/bin/heritrix
$HERITRIX_HOME/bin/heritrix --admin=LOGIN:PASSWORD --port=9090

3. I did the chmod +x for the permission already.

4. I not confirmed whether it is running at startup.

5. the script is no problem as I have check it

View 2 Replies View Related

Ubuntu :: Edit File Inside It, Open It, Edit A File, Then Remake The Bin File?

Mar 3, 2011

I have a linux.img image for ubuntu.I want to edit file inside it, how can open it, edit a file, then remake the bin file?

View 7 Replies View Related

Fedora :: Inittab No Such File Or Directory?

Jul 13, 2010

I tried to go to the inittab folder by typing /etc/inittab.

The following is the error message I get

[root@localhost /]# cd /etc/inittab
-bash: cd: /etc/inittab: Not a directory

View 5 Replies View Related

General :: Use Sed To Edit A File?

Sep 4, 2010

I need to change one word in over a thousand pages of HTML. I think sed is the only way to do this, but I've never used sed before.

After reading the documentation, I see that it is pretty easy to alter files to standard output, in other words, the screen.

But I don't want to do just alter text to the screen, I want to alter the original file, else I am not doing any Stream EDiting as near as I can tell.

None of the documentation explains how to take a file, apply sed to alter that file. How do you do this?

Code:
[myuser@myhost dir]#sed s/changethis/tothis/ /mydir/myfile

How do I apply sed to actually make the changes to myfile?

View 3 Replies View Related

General :: Edit The Sudo File?

Apr 27, 2011

I need to have regular user run this command sync; echo 3 > /proc/sys/vm/drop_caches

but it requires root privileges that I cannot give.

So I figured they could run the command as "sudo". I looked in /etc/sudoers and wasn't sure what I needed to edit for the users to run the following command

sync; echo 3 > /proc/sys/vm/drop_caches

View 14 Replies View Related

General :: How To Edit The Boot File

May 2, 2011

I installed 3 OS in my computer, first Windows xp, second Ubuntu 10.10 up to here I could go in to each one of them, but I installed Fedora 14 x64 after Ubuntu. Now I can only go to Fedora and XP, but I am not able to even see Ubuntu only in the shell, it is not in my boot options.

View 2 Replies View Related

General :: Can't Find Inittab On My System?

Jul 17, 2010

I'm using Ubuntu 10.04 and i can't find inittab on my system? Where did it go? Has Ubuntu removed this file? How can i find out about runlevels now?

View 4 Replies View Related

General :: How To Edit Contents Table Of Pdf File

Jul 17, 2011

how do i edit the "contents" of a pdf file. I tried pdfedit but I cant find where the content table list is stored.

View 1 Replies View Related

General :: Edit Last Word On Each Line In File?

May 28, 2010

I have a file which a number at the end of each line. I need to change this number in the file to be correct, i.e. each time the number is 9 it needs to be 1, each time it is 233 it needs to be 2, etc... There is no pattern to the numbers currently in the list other than the same number appears only in a single line/group of lines, not throughout the file, but the replacements need to be sequential (but can be repeated an arbitrary number of times).

[Code]....

View 10 Replies View Related

General :: Cron / Crontab - Do Not Edit This File

Mar 19, 2011

I am trying to have the files from /user/directory copy every hour to /backup/user/directory. It would seem that cron or crontab is what I need to use. Looking at previous posts and other documentation only shows how much I don't know. When I type crontab -e I get a blank file I can type into, seemingly using vi as the editor. I have no problem with that but when I type cron -l, I get my text after a message about "Do Not Edit this File". What I am reading just makes no sense, I am not understanding even the most fundamental aspects of cron or crontab. Where I can get the most basic of basic instructions to try to understand this function?

View 4 Replies View Related

General :: Edit The Config File Of An Application?

Aug 20, 2010

I want to edit the config file of an application I have installed and the documentation says that the config file is per-user and therefore stored in "~/". Which folder is that? The app itself is installed in "/usr/local/bin/".

View 5 Replies View Related

General :: Can't Get Mgetty To Start From Inittab / Resolve This?

Feb 8, 2010

I've updated a Fedora Core 3 server to Fedora 11. The old FC3 had an external modem attached for when we felt like dialing in for a ppp connection.
I've replicated login.config, mgetty.config and dialin.config from the old server and had to put a RS232-to-USB adapter on the modem.
I've test connected to the server and everything look fine.
I'm have a difficult time starting the Getty session from inittab.code...

View 1 Replies View Related

General :: Adding An Environment Variable To Inittab?

Jul 22, 2010

im quite new to Unix stuff Im in need to add a script to be executed, in to /etc/inittab for that i need to get the path to my java installation. I have set the JAVA_HOME env variable already, my question is whether we can use JAVA_HOME in inittab? i mean, are those env variables are crated by the time inittab starts? if so, how can i add the entry

currently im having is like this
pse:5:respawn:su - <username> -c "$JAVA_HOME/other-path/pp.sh run"
is there any issue with the syntax?

View 2 Replies View Related

General :: Edit The Config File To Show All IP's And Host?

Jul 19, 2010

Having a problem in my awstats, I'm a little lost to were to edit the config file to show all IP's and host so far its only showing up my IP and the PC's on my network and nothing else.

View 5 Replies View Related

General :: Edit Standard Configure File Using Script?

Jan 6, 2011

What I want to do is to find keyword in config file and change its value - that must be done using script.
I could write script usig awk and etc - but maybe there are already prepared ways/commands to change standard configure file setting?

View 1 Replies View Related

General :: Create _ Edit And View A File In System?

Oct 5, 2009

How to I open, create, edit, or view a file in Linux?

View 5 Replies View Related

General :: Inittab - Accidentally Changed Runlevel To 0 ( Halt )?

May 10, 2011

How do I recover from accidentally set the runlevel to 0?

View 5 Replies View Related

General :: Messed Up Inittab - It Boots Into Black Screen

Jun 10, 2011

I was following a lesson with my UNIX Academy training and by mistake made a change to inittab. now it boots into black screen. How can I get into shell to fix inittab

View 2 Replies View Related

General :: Edit An Existing Nautilus (file Manager) Bookmark?

Mar 4, 2010

Is there a way to edit an existing nautilus (fie manager) bookmark?

Invoke from Linux command line:

$ nautilus

Activate connection editor: File>Connect To Server...>

Complete entries in the pop up:

Service Type: [WebDAV (HTTP)]
Server: [localhost]
Port: [8001]
Folder [webdav]

[Code]....

View 1 Replies View Related

General :: Disk Based Text Editor To Edit File Larger Than Memory?

Aug 2, 2010

I am using Ubuntu and looking for a good editor to edit a file that is > 4GB. I just need to put content at the end and beginning of the file. I suppose I could use something like

cat "text to add" >> huge_file

To append to the file. Is that the route to go? What about prepending? In general, what is the best route if I wanted to edit somewhere in the middle?

I've tried VIM and it fails miserably. I assume emacs and nano would be even worse. What else is there? I assume to accomplish what I am looking for, the editor would have to be specifically designed for this by not keeping the entirety of the file's contents in memory.

View 5 Replies View Related

General :: Error Opening Terminal - Edit Sudoers File By Typing Visudo

Nov 13, 2010

Recently I migrated from Ubuntu to Debian, first thing i wanted to do was to give myself sudo permissions and lock the roir account. By default sudo group don't have permissions to do this on debian, so i wanted to edit sudoers file by typing visudo. But i keep getting this
error: Error opening terminal: vanilla How can i solve this.

View 1 Replies View Related

General :: Exit Bash Script - Add - Del - Edit User From Certain File Using Different CASE Variables

Mar 6, 2010

I have made a simple bash script through which i can add, del, edit user from certain file using different CASE variables. like
case
1. adduser
2. del user
3. edit user

Now i want to add a exit CASE like
1. adduser
2. del user
3. edit user
4. exit

Now i want to make a script such a way that, if user input is 4 then only script quit. I used with exit function also but it didn't work. if user press ENTER or other keys then also it quit the program.

View 6 Replies View Related

General :: Release File Lock In SAMBA 3.2.5 Share - MS Word - Filename - Is Locked For Edit

Sep 20, 2010

I'm having problem with the Samba 3.2.5 file share which host my MS-Word Document the user (user1) already restart her PC but still she cannot open the file from MS Word.

Here's the file and it's status on the samba drive:

Code:

How to reset the Samba file locking mechanism ?

View 6 Replies View Related

Ubuntu :: When Open Any .pps File With OO.org (impress), It Starts A Slideshow And It Doesn't Let Edit The File?

Aug 24, 2010

When i open any .pps file with OO.org (impress), it starts a slideshow and it doesn't let me edit the file. If i click on "end slideshow", the program exits.i ran it in a terminal and there's no error messages.[EDITED]Well, i found the answer, just renaming it to ".ppt".

View 2 Replies View Related

Red Hat / Fedora :: Edit A Text File To Delete All Commas In The File?

Jan 4, 2011

i want to find a command line way to edit a text file to delete all commas in the file. i do not want to replace them w/ anything.

View 2 Replies View Related

General :: Initializing Run Level 4 At Inittab Default Level

Jan 15, 2011

hello everyone, im having a problem when my computer enters in the run level 4 as the default when i start slackware. The strange thing is that it not seems that is a X window problem, it looks like more like a configuration problem in some part of the kde script to initialize the log in, because if i manually start the X service it works fine, i dont know what is the source. Thank you in advance for the help.

View 3 Replies View Related

Debian :: How To Edit A File

May 13, 2010

I need to edit my xorg.conf file. I can navigate to it in Terminal but do not know how to open it. If I navigate to it outside of terminal I can change it but cannot save the changes (not allowed) I can't seem to find a "how to" for this. (Debian 504 on a Toshiba laptop)

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved