- Ubuntu 20.04 Essentials
- Neil Smyth
- 224字
- 2021-06-11 17:39:24
1.3 Editing Files
Configuring a Linux system typically involves editing files. For those new to Linux it can be unclear which editor to use. If you are running a terminal session and do not already have a preferred editor we recommend using the nano editor. To launch nano in a terminal window simply enter the following command:
# nano <file>
Where <file> is replaced by the path to the file you wish to edit. For example:
# nano /etc/passwd
Once loaded, nano will appear as illustrated in Figure 1-2:

Figure 1-2
To create a new file simply run nano as follows:
# nano
When you have finished editing the file, type Ctrl-S to save the file followed by Ctrl-X to exit. To open an existing file, use the Ctrl-R keyboard shortcut.
If you prefer to use a graphical editor within the GNOME desktop environment gedit is a useful starting point for basic editing tasks. To launch gedit from the desktop press Alt-F2 to display the Enter a Command window as shown in Figure 1-3:

Figure 1-3
Enter gedit into the text field and press the Enter key. After a short delay, gedit will load ready to open, create and edit files:

Figure 1-4
Alternatively, launch gedit from a terminal window either with or without the path to the file to open:
# gedit
# gedit /etc/passwd
- Dreamweaver CS3 Ajax網(wǎng)頁(yè)設(shè)計(jì)入門與實(shí)例詳解
- 課課通計(jì)算機(jī)原理
- 智能傳感器技術(shù)與應(yīng)用
- 空間機(jī)器人遙操作系統(tǒng)及控制
- 商戰(zhàn)數(shù)據(jù)挖掘:你需要了解的數(shù)據(jù)科學(xué)與分析思維
- 實(shí)時(shí)流計(jì)算系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- Maya 2012從入門到精通
- ESP8266 Home Automation Projects
- 網(wǎng)中之我:何明升網(wǎng)絡(luò)社會(huì)論稿
- 機(jī)器人人工智能
- SQL Server數(shù)據(jù)庫(kù)應(yīng)用基礎(chǔ)(第2版)
- 數(shù)字多媒體技術(shù)基礎(chǔ)
- Hands-On Business Intelligence with Qlik Sense
- Serverless Design Patterns and Best Practices