Shell Access: Difference between revisions

From pronounmail wiki
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
# Go to a beach (preferably not [[Beach That Makes You Old|one that makes you old]]);
# Go to a beach (preferably not [[Beach That Makes You Old|one that makes you old]]);
# Look for something that looks like this: [[File:Different types of shells.jpg|400px]]
# Look for something that looks like this: <br> [[File:Different types of shells.jpg|400px]]
# The command is <code>ssh</code>.
 
== loggin in ==
 
=== Open the Terminal ===
You need to open a terminal window to log into the shell. The way you do that is different depending on what your computer is running:
 
==== Windows 11 ====
Open "'''Terminal'''"
 
==== Windows 10 ====
Open "'''Windows PowerShell'''"
 
==== MacOS ====
Open "'''Terminal'''"
 
==== Linux ====
It might be called "'''Terminal'''", "'''Console'''" or "'''Konsole'''" depending on what distribution you're using.
 
=== Log In ===
When you open the terminal, you should see a place where you can type words and such. This is called the "prompt".
 
Ok so you're gonna want to type in <code>ssh <your username>@pronounmail.com</code> (where <code><your username></code> is replaced with your actual username) and press enter (or return).
 
At this point it should ask you for your password. Type it in (keeping in mind that it won't actually show the letters you're typing it for securitie) and hit enter once more.
 
Ok at this point you should have reached pronounmail.com's shell and you've done it good job i love you dearly
 
== how 2 use da shell ==
At this point you should be connected to pronounmail.com's shell, so you can now run wacky commands on the server!!
 
You can think of the shell as a really fucked up Start Menu. You can type the name of a program at the prompt and press enter, and the shell will attempt to locate and run it. Everything you type after the name of the program is an "argument", which you can use to tell the program what you want it to do. Take this command for example:
mkdir my_folder
This uses <code>mkdir</code> (short for "Make Directory" ("directory" is another word for "folder")) to create a folder called <code>my_folder</code>. In this example, <code>mkdir</code> is the name of the program and <code>my_folder</code> is the single argument.
 
most people call the first bit the command and also call the whole command a command. good for them :)
 
== assorted tips ==
Lots of good information at [https://fishshell.com/docs/current/interactive.html https://fishshell.com/docs/current/]
 
* Press Ctrl+C to tell the currently running command to stop.
* Use Ctrl+W to delete the previous word
* To copy and paste things, use Ctrl+Shift+C/V (or Cmd+C/V on a mac).
* Press Tab to try and autocomplete a thing, keep pressing Tab for more autocompletions.
* Type the name of a command and press Alt+H to see helpful information about it
* Press the up or down arrow keys to go through your command history
 
== list of common commands ==
{| class="wikitable"
|+
!name of thing
!what it does
!example usage
|-
|touch
|Creates a file with no content
|<code>touch my_file.txt</code>
|-
|rm
|Deletes a file
|<code>rm secrets.txt</code>
|-
|cp
|Create a copy of a file
|<code>cp a.txt b.txt</code>
|-
|mv
|Move a file to a new location
|<code>mv a.txt b.txt</code>
|-
|mkdir
|Create a new directory (folder)
|<code>mkdir wacky_folder</code>
|-
|clear
|Clear the screen
|<code>clear</code>
|-
|ls
|List files in the current directory
|<code>ls</code>
|-
|cd
|Move into a directory
|<code>cd wacky_folder</code>
|}
[[Category:Pages with some amount of information in them]] [[Category:Pages that need things added to them]]

Latest revision as of 23:11, 28 October 2024

  1. Go to a beach (preferably not one that makes you old);
  2. Look for something that looks like this:
  3. The command is ssh.

loggin in

Open the Terminal

You need to open a terminal window to log into the shell. The way you do that is different depending on what your computer is running:

Windows 11

Open "Terminal"

Windows 10

Open "Windows PowerShell"

MacOS

Open "Terminal"

Linux

It might be called "Terminal", "Console" or "Konsole" depending on what distribution you're using.

Log In

When you open the terminal, you should see a place where you can type words and such. This is called the "prompt".

Ok so you're gonna want to type in ssh <your username>@pronounmail.com (where <your username> is replaced with your actual username) and press enter (or return).

At this point it should ask you for your password. Type it in (keeping in mind that it won't actually show the letters you're typing it for securitie) and hit enter once more.

Ok at this point you should have reached pronounmail.com's shell and you've done it good job i love you dearly

how 2 use da shell

At this point you should be connected to pronounmail.com's shell, so you can now run wacky commands on the server!!

You can think of the shell as a really fucked up Start Menu. You can type the name of a program at the prompt and press enter, and the shell will attempt to locate and run it. Everything you type after the name of the program is an "argument", which you can use to tell the program what you want it to do. Take this command for example:

mkdir my_folder

This uses mkdir (short for "Make Directory" ("directory" is another word for "folder")) to create a folder called my_folder. In this example, mkdir is the name of the program and my_folder is the single argument.

most people call the first bit the command and also call the whole command a command. good for them :)

assorted tips

Lots of good information at https://fishshell.com/docs/current/

  • Press Ctrl+C to tell the currently running command to stop.
  • Use Ctrl+W to delete the previous word
  • To copy and paste things, use Ctrl+Shift+C/V (or Cmd+C/V on a mac).
  • Press Tab to try and autocomplete a thing, keep pressing Tab for more autocompletions.
  • Type the name of a command and press Alt+H to see helpful information about it
  • Press the up or down arrow keys to go through your command history

list of common commands

name of thing what it does example usage
touch Creates a file with no content touch my_file.txt
rm Deletes a file rm secrets.txt
cp Create a copy of a file cp a.txt b.txt
mv Move a file to a new location mv a.txt b.txt
mkdir Create a new directory (folder) mkdir wacky_folder
clear Clear the screen clear
ls List files in the current directory ls
cd Move into a directory cd wacky_folder