How do I make a file with a "/" in the name. Linux

Status
Not open for further replies.
Joined
Jun 12, 2007
Messages
1,700
Location
FL
I am running Linux Mint 7 on my desktop and I am trying to control my fan speeds. I am using Ubuntu these directions and it says to create a file called "/etc/init.d/fancontrol". I can not name a file with "/" in it. I am stumped. I am new to Linux so please be easy on me if this is a lame question.
27.gif
 
Your file would be named fancontrol, it goes into the /etc/init.d/ directory.


So /etc/init.d/fancontrol is the file name and the directory that it is in.
 
To find this in nautilus or whatever your file manager is, click on "filesystem" then "etc" then "init.d" then right click and create a blank file, which you call "fancontrol."
 
Originally Posted By: CharlieJ
I am running Linux Mint 7 on my desktop and I am trying to control my fan speeds. I am using Ubuntu these directions and it says to create a file called "/etc/init.d/fancontrol". I can not name a file with "/" in it. I am stumped. I am new to Linux so please be easy on me if this is a lame question.
27.gif



What ^he^ said. I don't recall off the top of my head whether or not that directory requires root access, so you may have to use sudo to create and edit the file.
 
The directory /etc/init.d requires root access to create/modify/delete files.

Go into a terminal window and type

sudo -s

Then your password. (assuming you have admin rights)

cd /etc/init.d

gedit fancontrol (this will edit the file, be careful)

(BTW, my machine already has this file in the /etc/init.d directory; these are SYSTEM start stop scripts so you are playing with matches, but you don't know what fire is but good time to learn)

try typing (in a shell)

service fancontrol status
* fancontrol is not running
 
Last edited:
^ I am not sure what to do with that. Here is what I am trying to do. Since I have installed linux on my Sony Vaio RX550, the PSU and CPU fans have been running full blast and I need them to "go back to normal". I can not figure out how to do this.
 
Originally Posted By: simple_gifts
cd /etc/init.d

gedit fancontrol (this will edit the file, be careful)


By the way, shouldn't that last command actually be:

Code:
emacs fancontrol


Sorry, I couldn't resist. I've been using various versions of Emacs for over twenty years, and some habits die hard. I don't even bother trying anything in vi since I'd be so confused I'd just be staring blankly at the screen.
 
su -

(give the root password if prompted)


touch -p /etc/init.d/fancontrol

vi /etc/init.d/fancontrol

Touch will create a file and the -p option creates any path components needed to get to that directory.
 
Originally Posted By: javacontour

vi /etc/init.d/fancontrol


Easy, javacontour: The OP says he's new to Linux. Let's try gedit instead of vi, eh? Whaddya going to do next, have the brother crack out ee? And su instead of gksudo?! *He could lose a finger or burn his house down that way!*
28.gif


Here's what I'd do from the command line:

cd /etc/init.d

gksudo gedit fancontrol
[enter your password in the popup window, wait for gedit to open...]

Then edit the file as needed and save. You may need to restart the service to see any changes.
 
Originally Posted By: uc50ic4more
Easy, javacontour: The OP says he's new to Linux. Let's try gedit instead of vi, eh? Whaddya going to do next, have the brother crack out ee?


Besides, didn't I say he should be using Emacs instead?
wink.gif
 
Originally Posted By: Garak
Originally Posted By: uc50ic4more
Easy, javacontour: The OP says he's new to Linux. Let's try gedit instead of vi, eh? Whaddya going to do next, have the brother crack out ee?


Besides, didn't I say he should be using Emacs instead?
wink.gif



Your post was an implied joke; first because you followed it with "Sorry, I couldn't resist..." and secondly because you suggested emacs over vi. That part was *hilarious*.

28.gif
 
Let's get the religious war going, everyone needs to know vi, LOL.

I used to teach Solaris for Sun, and remember teaching new admins vi. I said that vi stands for "Virtually Impossible"

That said, I also told them that if they booted from CD to repair their system, it's likely vi is the only editor they will have.

Since I've been doing some sort of flavor of *nix since 1983, I'm kinda stuck on vi.
 
Originally Posted By: uc50ic4more
Your post was an implied joke; first because you followed it with "Sorry, I couldn't resist..." and secondly because you suggested emacs over vi. That part was *hilarious*.


Here's another one that will tickle your ribs. I find Vi too complex. Emacs is much more intuitive.

Originally Posted By: javacontour
Let's get the religious war going, everyone needs to know vi, LOL.

I used to teach Solaris for Sun, and remember teaching new admins vi. I said that vi stands for "Virtually Impossible"

That said, I also told them that if they booted from CD to repair their system, it's likely vi is the only editor they will have.

Since I've been doing some sort of flavor of *nix since 1983, I'm kinda stuck on vi.


Maybe we can make it hotter than a SOPUS vs. Exxon Mobil fan war. As for Emacs, I've used some variation of it for decades, too. My Amiga, of all things, had a version of Emacs as a text editor, and I've had those commands dancing around my head ever since.
 
Last edited:
Status
Not open for further replies.
Back
Top Bottom