Find the answer to your Linux question:
Results 1 to 6 of 6
How do you creat a new file to put in a dir? I cant get KDE to start. This is what was on another thread. 1)Create a file in your ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! Wyldeman's Avatar
    Join Date
    Oct 2006
    Location
    United States of Texas....lol
    Posts
    43

    New File


    How do you creat a new file to put in a dir?
    I cant get KDE to start. This is what was on another thread.

    1)Create a file in your home directory called .xinitrc

    2)Inside that file, put one line:
    Code:

    exec startkde


    3)Save and run startx again.

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Touch is a nice tool for that, "touch ~/.xinitrc" then edit it with vim or nano
    You can also just pretend the file exists with "nano ~/.xinitrc" add the content and just save it with ^O and the file is created
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Just Joined! Wyldeman's Avatar
    Join Date
    Oct 2006
    Location
    United States of Texas....lol
    Posts
    43
    I dont really understand??? Would i have to emerge touch?

    I tried to nano -w /etc/home/.xinitrc edit it and save it wouldnt do it. it did exist.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Touch is included by default. If the file exists, edit it to your needs. and I dont think /etc/home exists by default
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  6. #5
    Just Joined! Wyldeman's Avatar
    Join Date
    Oct 2006
    Location
    United States of Texas....lol
    Posts
    43
    ok Juan i tried " touch~/.xinitrc "
    No such file or dir.
    I must be missing something here.

  7. #6
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Posts
    624
    To create:
    Code:
    touch ~/.xinitrc
    Remember the space between touch and ~. Rest is continous.

    To edit:
    Code:
    vim ~/.xinitrc
    Again remember the space.

    Alternatively if you are sure that the file you are creating is going to be a text file (as in this case) then you can directly do this
    Code:
    vim ~/.xinitrc
    This shall create the file and open it up for you to edit. Good Luck!!!
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •