Results 1 to 5 of 5

Thread: Steps to open up a file in home directory and write in a command in it

  1. #1
    Join Date
    Mar 2013
    Beans
    3

    Cool Steps to open up a file in home directory and write in a command in it

    HI:

    I am a beginner in Ubuntu and need easy clear steps/commands that can open a file named '.xinitrc' which is in Home directory and also want to write in a command-line in this file. How will I do it. Any help will be highly appreciated.

  2. #2
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Steps to open up a file in home directory and write in a command in it

    The .xinitrc file doesn't exist in a standard Ubuntu installation so you'll have to create it yourself.

    Fire up your text editor (gedit if you are using Ubuntu) and write what you need then just save the file as .xinitrc in your home directory.
    Cheesemill

  3. #3
    Join Date
    Mar 2013
    Beans
    3

    Cool Re: Steps to open up a file in home directory and write in a command in it

    Kinfly tell me what command to use to open text editor using "Gedit" and also what command to save the file. Many thanks.

  4. #4
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: Steps to open up a file in home directory and write in a command in it

    Which version of Ubuntu are you using?

    If you are using the normal desktop version then to open gedit just press the super (Windows) key, type gedit, and then click on the icon that appears.
    To save the file click on File > Save on the menu bar at the top of the screen.
    Cheesemill

  5. #5
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Steps to open up a file in home directory and write in a command in it

    Be aware that commands in .xinitrc only get executed for X sessions manually started from command line with startx. If you start your GUI through a display manager (LightDM), either put them into .xsessionrc instead or autorun your script from /etc/lightdm/lightdm.conf

Bookmarks

Posting Permissions

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