<td>mkdir</td><td>mkdir</td><td>create a new directory</td><td><strong>mkdir test</strong></td>
</tr>
<tr>
<td>rmdir (or del)</td><td>rm</td><td>delete a file</td><td><strong>rm test/test.txt</strong></td>
</tr>
<tr>
<td>rmdir /S</td><td>rm -r</td><td>delete a directory</td><td><strong>rm -r test</strong></td>
</tr>
<tr>
<td>[CMD] /?</td><td>man [CMD]</td><td>get help for a command</td><td><strong>cd /?</strong> (Windows) or <strong>man cd</strong> (Mac OS / Linux)</td>
</tr>
</table>
## Running scripts
To run a Python script, e.g. to run the script example.py, execute the command:
...
...
@@ -490,6 +545,31 @@ it can be executed and interpreted by Bash with the command:
`./example.sh`
## Accessing another system with the Command Line
Often it is not possible or inconvenient to access another system directly.
If remote access has been enabled, one method to do this is through the Secure
Shell (SSH), which lets you securely control and modify remote systems over
the network.
You can do this by typing in `ssh username@host_server`
where username is the account name of your account on the remote system, and
host_server is the remote host.
If you have a password to access your account on the server, SSH will
prompt you to enter that in.
If it’s your first time accessing that particular system, your computer may also
ask you if it can remember the authenticity key — type in ‘yes’ or the corresponding
phrase so that your computer doesn’t ask you this every time.
After successfully logging in to the remote system via SSH, you are presented with
a command line prompt and commands you type in the terminal window at that prompt
will be interpreted as commands to execute on the remote system. Exit the SSH
session by logging out, usually by typing the command `exit`. After exiting the
SSH session, commands issued at the command line prompt in your terminal window
will be interpreted as commands to execute on the local system.
## Permissions and ownership
In Unix and Linux systems there is are the concepts of 'permission' and 'ownership'.
Every file and directory has a set of permissions and ownership associated with it.