?
Solved

problems withs file name

Posted on 2005-03-15
3
Medium Priority
?
171 Views
Last Modified: 2010-05-18
I am in the process of creating a file that will be placed in my /etc/sysconfig/network-scripts directory this file will contain information that will allow my computer to load my wireless network settings at startup. I am trying to create the file in kwrite and but I am not allowed to save to the directory because I am not logged in as root. I have two questions.
1. What program should I use to create the file beside kwrite because when I try to copy the file from a shell it tells me I have a incorrect filename
2. Is there a simpler way to save the file to the /etc/syconfig/network-scripts directory besides creating the file in kwrite and then try to copy the file from my home directory to the network-scripts folder ?

I am new to linux and trying to learn it so when someone helps me please understand I would like detailed instructions. Thanks
0
Comment
Question by:tupac1979
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Expert Comment

by:paranoidcookie
ID: 13549805
You need ot use a real text editor like vi kate nano emacs pico or joe (please lets not have a editor flame war).

From the command prompt

cd /etc/sysconfig/network-scripts
touch filename
kate filename
0
 
LVL 3

Expert Comment

by:pdub79
ID: 13550632
If you do have the root password, then you can "su" to root and then start kwrite.

So here is what you would do from command line...

user$ su
user$ "enter root password"
user$ kwrite


then just save file to the directory as you now will have full write permissions as root

No matter what editor you use, you will still need to be the root user
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 2000 total points
ID: 13552333
Um, kwrite is definitely a real text editor.

pdub's solution is right.

Here's a shortcut which you may find helpful also...

su -c 'kwrite /path/to/filename'
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question