Commands

The following is a list of **commands** in *Hacknet*.

## Description

There are various commands that help the user to perform certain tasks. These commands are to be typed in the terminal of the game.

## Commands list

### Page 1

**`help [PAGE NUMBER]`**
*Displays the specific page of commands.*

Displays either of the three command pages.

**`scp [filename] [OPTIONAL: destination]`**
*Copies file named [filename] from remote machine to specified local folder (/bin default)*

**`scan`**
*Scans for links on the connected machine and adds them to the Map*

**`rm [filename (or use * for all files in the folder)]`**
*Deletes specified file(s)*

**`ps`**
*Lists currently running processes and their PIDs*

**`kill [PID]`**
*Kills Process Number [PID]*

Kills the specific program using its PID.

**`cd [foldername]`**
*Moves current working directory to the specified folder*

Usage:

* moving in the specified folder

```
cd home
```

* moving out of the specific folder

```
cd ..
```

* moving to the root directory

```
cd /
```

**`mv [FILE] [DESTINATION]`**
*Moves or renames [FILE] to [DESTINATION]
 (i.e. `mv hi.txt ../bin/hi.txt`)*

**`connect [ip]`**
*Connect to an External Computer*

Some computers allow connection using their name:

* PointClicker

```
connect PointClicker
```

### Page 2

**`probe`**
*Scans the connected machine for active ports and security level*

**`exe`**
*Lists all available executables in the local `/bin/` folder (Includes hidden and embedded executables)*

**`disconnect`**
*Terminate the current open connection. ALT: "`dc`"*

**`cat [filename]`**
*Displays contents of file*

**`openCDTray`**
*Opens the connected Computer's CD Tray*

Note: when connected to the player's computer, the command opens the real computer's CD tray. Does nothing if connected to other computers.

**`closeCDTray`**
*Closes the connected Computer's CD Tray*

Note: when connected to the player's computer, the command closes the real computer's CD tray. Does nothing if connected to other computers.

**`reboot [OPTIONAL: -i]`**
*Reboots the connected computer. The `-i` flag reboots instantly*

Note: when connected to the player's computer, launching the commands reboots it.

**`replace [filename] "target" "replacement"`**
*Replaces the target text in the file with the replacement*

**`analyze`**
*Performs an analysis pass on the firewall of the target machine*

Note: the command must be used a at least 6 times to reveal the clear firewall solution.

**`solve [FIREWALL SOLUTION]`**
*Attempts to solve the firewall of the target machine to allow UDP Traffic*

Note: the solution is case-insensitive.

### Page 3

**`login`**
*Requests a username and password to log in to the connected system*

Note: the password is case-sensitive.

**`upload [LOCAL FILE PATH/FILENAME]`**
*Uploads the indicated file on your local machine to the current directory*

**`clear`**
*Clears the terminal*

**`addNote [NOTE]`**
*Add Note*

**`append [FILENAME] [DATA]`**
*Appends a line containing [DATA] to [FILENAME]*

Note: appending uses a new line every time the command is used.

**`shell`**
*Opens a remote access shell on target machine with Proxy overload and IP trap capabilities*

**`save!(SJN!*SNL8vAewew57WewJdwl89(*4;;;&!)@&(ak'^&#@J3KH@!*`**
Internal game command - Save The Game process

**`FirstTimeInitdswhupwnemfdsiuoewnmdsmffdjsklanfeebfjkalnbmsdakj`**
Internal game command - performs the "Initialisation" sequence that you see on bootup, and connects to your home PC