From b8b35cf21b078a9694e02f3422c77e47dec5c28f Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Fri, 1 Jan 2016 17:36:09 -0500 Subject: Finished up cheetsheet --- to-do/cheetsheet.txt | 18 ++++++++++++++---- to-do/website.txt | 2 ++ 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. -- cgit v1.2.3-70-g09d2