Skip to content

Instantly share code, notes, and snippets.

@stark
Last active November 26, 2017 14:45
Show Gist options
  • Save stark/27755c9461eef6c925cd to your computer and use it in GitHub Desktop.
Save stark/27755c9461eef6c925cd to your computer and use it in GitHub Desktop.
LinuxBBQ Academy

Lesson 2 - Editing files

By default, LinuxBBQ comes with the GNU nano editor. It is good enough for most of the tasks, quick enough for most of the users, and powerful enough to make even editing of multiple files possible.

Let's edit the configuration file of wmii.

Open up a terminal, and type:

nano ~/.wmii/wmiirc_local

Pro tip: Make use of the bash-completion feature for longer filenames {: .callout .info}

The file is quite easy to understand.

You can set background and foreground colors, or change the modifier Mod1 (which is Alt) to Mod4 (which is Super or Windows).

When you made your changes, press Ctrl + o and hit Enter.

To close the editor, press Ctrl + x.

To see any changes you made, use the three-finger salute:

Ctrl + Alt + Backspace

In the next part we'll take a look at the ~/.xinitrc file, we'll set up the terminal environment, and we'll install some software.

Until then, move those terminals around, cowboy! ;)

Further readings in our wiki:

Command-line interface

http://ow.ly/NhT3C

Terminal intro

http://ow.ly/NhTkr

CLI tricks

http://ow.ly/NhTzu

GNU nano

http://ow.ly/NhTUj

Config file

http://ow.ly/NhUa7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment