aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-01 17:36:09 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-01 17:36:09 -0500
commitb8b35cf21b078a9694e02f3422c77e47dec5c28f (patch)
treec57e8539e5177269657e782b3445e895736b6afb
parent679b11985fd6a2424cedb3fdf588c3c321769891 (diff)
downloadwintersurvival2-b8b35cf21b078a9694e02f3422c77e47dec5c28f.tar.gz
wintersurvival2-b8b35cf21b078a9694e02f3422c77e47dec5c28f.tar.bz2
wintersurvival2-b8b35cf21b078a9694e02f3422c77e47dec5c28f.zip
Finished up cheetsheet
-rw-r--r--to-do/cheetsheet.txt18
-rw-r--r--to-do/website.txt2
2 files changed, 16 insertions, 4 deletions
diff --git a/to-do/cheetsheet.txt b/to-do/cheetsheet.txt
index 410a140..aee304c 100644
--- a/to-do/cheetsheet.txt
+++ b/to-do/cheetsheet.txt
@@ -5,9 +5,9 @@ cd - change directory - moves through the file tree
Example: cd /home/alex/
Moves into your home directory, you usually have read, write, and execute access to everything in this directory.
Example: cd ~
- Same as above, ~ is a substitue for your home directory, so if you were a user named "bob", 'cd ~' would move to /home/bob/
+ Same as above, ~ is a substitute for your home directory, so if you were a user named "bob", 'cd ~' would move to /home/bob/
Example: cd ..
- Moves to the parrent directory, so if you were in /home/alex/documents, and you executed 'cd ..' you would now be in alex/home/
+ Moves to the parent directory, so if you were in /home/alex/documents, and you executed 'cd ..' you would now be in alex/home/
ls - list directory - lists the contents of the current directory you are in
Example: ls
@@ -17,6 +17,16 @@ ls - list directory - lists the contents of the current directory you are in
Example: ls -l
Lists all files and folders, with their permissions, owner, and group displayed
-Executeing bash scripts: Simply type the name of the bash script, for example if you are in /home/alex/, and the 'ls' command shows a file called do_something.sh, simply type './do_something.sh' you can also use absolute file path(/home/alex/do_something.sh) or relative filepath (~/do_something.sh, assuming you are the user alex)
+Executing bash scripts: Simply type the name of the bash script, for example if you are in /home/alex/, and the 'ls' command shows a file called do_something.sh, simply type './do_something.sh' you can also use absolute file path(/home/alex/do_something.sh) or relative filepath (~/do_something.sh, assuming you are the user alex)
-Viewing files: Remember that you are on a command line, which means you can't view things like pictures without downloading them to your local computer and using a image viewing program to view them. That said, text files can be viewd with 'cat filename'
+Viewing files: Remember that you are on a command line, which means you can't view things like pictures without downloading them to your local computer and using a image viewing program to view them. That said, text files can be viewed
+
+cat - concatenate - appends the file to the command line
+ Example: cat foo.txt
+ If the file foo.txt is in the current directory, and contains the text 'Hello, world!', 'Hello, world!' will be shown on the command line
+
+nano - A very small text editor - the rough equivalent of Notepad.exe
+ Example: nano foo.txt
+ If we assume the same file from the previous example, you can now move the cursor around the file with the arrow keys. The shortcuts are displayed at the bottom, in linux '^' means control, so to save a file, you would press crtl+o, and to exit you would press ctrl+x
+
+The default shell on my server is called 'bash' and has tab-completion for most things, you you can't quite remember how to spell a folder name, you can press tab twice, and it'll list the the child folders of whatever path you have typed so far.
diff --git a/to-do/website.txt b/to-do/website.txt
index 16c6773..611d80e 100644
--- a/to-do/website.txt
+++ b/to-do/website.txt
@@ -1 +1,3 @@
There is a website that goes with the beta server currently located at cogarr.net
+
+I am using lighttpd as the webserver, with mostly default setup. I am symlinking /var/www/html with a different folder to make the site easier to work with over git.