Difference between revisions of "Viewing and editing configuration files"

m
Template inserted
m (Template inserted)
m (Template inserted)
Line 26: Line 26:
<!--T:8-->
<!--T:8-->
To open a configuration file with nano simply type nano <filename>.  For example, to edit your .profile file you could type:
To open a configuration file with nano simply type nano <filename>.  For example, to edit your .profile file you could type:
   nano ~/.profile
   {{UserCmd|command=nano ~/.profile}}


<!--T:9-->
<!--T:9-->
Line 36: Line 36:
<!--T:11-->
<!--T:11-->
The first is to use sudo to run the text editor.  For example, to edit your fstab file you could type:
The first is to use sudo to run the text editor.  For example, to edit your fstab file you could type:
   sudo nano /etc/fstab
   {{UserCmd|command=sudo nano /etc/fstab}}


<!--T:12-->
<!--T:12-->
An alternative, and arguably safer method, would be to save a copy of the file somewhere you can write and then use sudo to move it.  For example, if you used nano to edit your fstab and then saved a copy to your home folder, you could then move it to the proper location with sudo:
An alternative, and arguably safer method, would be to save a copy of the file somewhere you can write and then use sudo to move it.  For example, if you used nano to edit your fstab and then saved a copy to your home folder, you could then move it to the proper location with sudo:
   sudo mv ~/fstab /etc/fstab
   {{UserCmd|command=sudo mv ~/fstab /etc/fstab}}


= Desktop Environment = <!--T:13-->
= Desktop Environment = <!--T:13-->
translator
1,001

edits