Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
hi boy sorry for my bad english i try do modify BASHRC and ENVIRONMENT files on directory ETC then all the command don't work, such as: SUDO, GEDIT, NAUTILUS, NANO ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5

    [SOLVED] Command Not Found


    hi boy

    sorry for my bad english

    i try do modify BASHRC and ENVIRONMENT files on directory ETC

    then all the command don't work, such as:
    SUDO, GEDIT, NAUTILUS, NANO and some others!

    now i want to edit the 2 files and delete the insert lines

    how i can do it?

    thanks!

  2. #2
    tpl
    tpl is offline
    Linux User
    Join Date
    Jan 2007
    Location
    cleveland
    Posts
    478
    try calling nano as /usr/bin/nano
    the sun is new every day (heraclitus)

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Note: Linux commands are case sensitive. NANO is different from nano.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    at first there isn't problem with this command! after my change there is problem!!

    at first i write all commands without upper case!
    Last edited by onesim29984; 03-10-2010 at 03:58 PM. Reason: add

  6. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Try replacing backup files of .bashrc and environment files with new edited files. Linux creates backup files by default.
    Check the output of ls -al command. Backup files use ~ sign with actual file name.

    As Lakshmipathi mentioned already, NANO is not nano. I would suggest you to use correct case for all commands in your posts to avoid confusion.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #6
    Just Joined!
    Join Date
    Jul 2005
    Location
    Carbondale, IL
    Posts
    11
    Quote Originally Posted by devils casper View Post
    Try replacing backup files of .bashrc and environment files with new edited files. Linux creates backup files by default.
    Check the output of ls -al command. Backup files use ~ sign with actual file name.

    As Lakshmipathi mentioned already, NANO is not nano. I would suggest you to use correct case for all commands in your posts to avoid confusion.
    If you read his post, it says he edited /etc/profile and others. Which he shouldn't have done. he should have edited the ~/.profile in his home directory.

  8. #7
    Just Joined! Leppie's Avatar
    Join Date
    Feb 2010
    Posts
    72
    it would be useful to know which files exactly (path + filename, for example /etc/environment) were modified.

  9. #8
    Just Joined!
    Join Date
    Jul 2007
    Posts
    14
    If you can't get an editor to work on your machine, using the installed operating system, you might try booting from a live-CD version. Knoppix is the old stand-by, but there are many others available -- in fact, the disk you used to install your current OS might even be live-bootable.

    From there, you should be able to use the editing tools from the CD version to re-write the files you edited earlier.

  10. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Quote Originally Posted by Oppie View Post
    If you read his post, it says he edited /etc/profile and others. Which he shouldn't have done. he should have edited the ~/.profile in his home directory.
    I have read his post correctly. Backup files are created for every file and there will be /etc/profile~ file which thread starter can replace with new one.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  11. #10
    Just Joined!
    Join Date
    Mar 2010
    Posts
    5
    Quote Originally Posted by tpl View Post
    try calling nano as /usr/bin/nano
    with this command i view an interface of GNU NANO in wich i don't know how i can do!!

    Quote Originally Posted by devils casper View Post
    Try replacing backup files of .bashrc and environment files with new edited files. Linux creates backup files by default.
    Check the output of ls -al command. Backup files use ~ sign with actual file name.
    Code:
    [root@ermete ~]# ls -al
    total 248
    drwxr-xr-x 19 root root  4096 2010-03-10 12:48 .
    drwxr-xr-x 29 root root  4096 2010-03-10 12:45 ..
    -rw-------  1 root root  6510 2010-02-02 12:19 anaconda-ks.cfg
    -rw-------  1 root root  2735 2010-03-10 13:58 .bash_history
    -rw-r--r--  1 root root    24 2007-01-06 10:05 .bash_logout
    -rw-r--r--  1 root root   191 2007-01-06 10:05 .bash_profile
    -rw-r--r--  1 root root   176 2007-01-06 10:05 .bashrc
    -rw-r--r--  1 root root   100 2007-01-06 10:05 .cshrc
    drwx------  3 root root  4096 2010-03-10 11:23 .dbus
    drwxr-xr-x  2 root root  4096 2010-02-02 13:12 Desktop
    -rw-------  1 root root    26 2010-03-10 12:48 .dmrc
    drwxr-x---  2 root root  4096 2010-02-02 13:12 .eggcups
    -rw-------  1 root root    16 2010-02-02 16:23 .esd_auth
    drwx------  4 root root  4096 2010-03-10 12:48 .gconf
    drwx------  2 root root  4096 2010-03-10 13:59 .gconfd
    drwxr-xr-x  3 root root  4096 2010-02-02 13:12 .gnome
    drwx------  6 root root  4096 2010-03-10 11:23 .gnome2
    drwx------  2 root root  4096 2010-02-02 13:12 .gnome2_private
    drwxr-xr-x  2 root root  4096 2010-02-02 13:12 .gstreamer-0.10
    -rw-r--r--  1 root root    81 2010-02-02 13:12 .gtkrc-1.2-gnome2
    -rw-------  1 root root     0 2010-02-02 16:24 .ICEauthority
    -rw-r--r--  1 root root 58316 2010-02-02 12:18 install.log
    -rw-r--r--  1 root root  4973 2010-02-02 12:17 install.log.syslog
    drwx------  3 root root  4096 2010-02-02 13:12 .metacity
    drwx------  4 root root  4096 2010-02-02 13:36 .mozilla
    drwxr-xr-x  3 root root  4096 2010-02-02 16:24 .nautilus
    -rw-r--r--  1 root root    96 2010-02-02 12:48 .ncbirc
    -rw-r--r--  1 root root  2060 2010-03-10 11:43 .recently-used.xbel
    drwxr-xr-x  3 root root  4096 2010-02-02 13:12 .redhat
    -rw-r--r--  1 root root     0 2010-02-02 12:45 rocks-post.log
    -rw-r--r--  1 root root     0 2010-02-02 12:19 rocks-post.sh
    -rw-r--r--  1 root root 18715 2010-02-02 13:21 rocks-pre.log
    -rw-r--r--  1 root root 18012 2010-02-02 12:19 rocks-pre.sh
    drwxr-xr-x  2 root root  4096 2010-02-02 12:47 .ssh
    drwxr-xr-x  3 root root  4096 2010-02-02 12:48 .t_coffee
    -rw-r--r--  1 root root   129 2007-01-06 10:05 .tcshrc
    drwx------  2 root root  4096 2010-02-02 13:12 .Trash
    drwxr-xr-x  2 root root  4096 2010-02-02 13:49 .vnc
    -rw-------  1 root root   321 2010-03-10 12:08 .Xauthority
    -rw-r--r--  1 root root  1253 2010-03-10 12:48 .xsession-errors
    and now?
    sorry for my delay in response, but i can do test only at university!

Page 1 of 2 1 2 LastLast

Posting Permissions

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