Site Tools


Writing /var/www/twelvetacos/wiki/data/cache/c/cd6514f5bf9a905ce83f5e0dfd5289f9.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/twelvetacos/wiki/data/cache/c/cd6514f5bf9a905ce83f5e0dfd5289f9.metadata failed
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
cori_s_guide_to_linux

This is an old revision of the document!


Cori's Guide to Linux

Connecting to the server

The server is running at twelvetacos.com and ssh is open on port 2242. Open PuTTY and enter the server Host Name and Port. If you want to save the connection info, enter a name for the connection in “Saved Sessions” and click save. To load a saved session, double-click on the saved session.

Initial Configuration

After logging in with the username “corina” and the provided password, run passwd to reset your password to something more secure. The new password will not display as you type it.

The linux directory structure starts at /. From there, there are a few important subdirectories.

/home/  - Contains the home folders for all the users on the system.
/var/   - Contains files that are likely to change (variable) used by services running on the system.
/etc/   - Contains configuration files for services running.
/tmp/   - Contains temporary files.

Your home directory will be located at /home/corina/. Your current directory will be displayed in your prompt to the right of the colon corina@jolokia:~$. The tilde is a shortcut for your home directory. Some basic commands for navigating the system are below.

pwd - Print the working directory (show where you currently are in the file system.
corina@jolokia:~$ pwd
/home/corina

ls - List the contents of the current directory. You can also provide a location as an argument to view
     the contents of another directory. (ls /var/www/)
corina@jolokia:~$ ls /var/www
corinaheich  facebook  reddit  twelvetacos  writingroots

ls -l - Providing the -l option will give a long listing to include file permissions along with the owner
        and group owner of each file.
corina@jolokia:~$ ls -l /var/www
total 20
drwxr-xr-x 4 www-data www-data 4096 Feb 10 23:19 corinaheich
drwxr-xr-x 4 www-data www-data 4096 Dec 29 23:00 facebook
drwxr-xr-x 4 www-data www-data 4096 Dec 29 23:00 reddit
drwxr-xr-x 5 www-data www-data 4096 Jan  1 17:40 twelvetacos
drwxr-xr-x 4 www-data www-data 4096 Feb 10 22:09 writingroots

Editing Files

Vim is a basic text-editing tool you can use to view and edit files. To open a file in vim, the command is simply vim <filename>. Once a file is open, you will be in command mode. The mode is shown at the bottom left of the screen when not in command mode. From command mode, type i <enter> to enter insert mode. In insert mode, you will be able to modify the file as normal using the keyboard. To leave any mode and go back to insert mode, use the escape key.

To save a file, you must first be in command mode. Once in command mode, Enter :w <enter> to write changes to the file. To quit the vim editor, you must enter :q <enter>. If you want to save and quit, you can combine these commands and use :wq <enter>. This is what I use most of the time. If you want to quit without saving changes, you have to use :q! <enter> to tell vim you want to quit without writing changes to the file. If you receive an error about the file being only 'readonly', you must quit without writing changes as you do not have the right permissions to edit the file.

cori_s_guide_to_linux.1423875977.txt.gz · Last modified: 2017/03/05 13:15 (external edit)