📖
Empirica v1 Docs
  • Introduction
  • Getting Started
    • Setup
      • Windows WSL Instructions
    • Creating your experiment
    • Running your experiment
    • Updating your experiment
  • Guides
    • Tutorial: Your First Experiment
      • Part 1: Getting Started
      • Part 2: Configuring the Experiment
      • Part 3: Adding Social Information and New Factors
      • Part 4: Adding Chats
      • Part 5: Adding Bots
    • The Settings File
      • Specifying Login Details
      • Setting player ids via URL queries
      • Connecting Locally to MongoDB
    • The Admin Panel
    • Special Empirica Elements (and how to modify them)
    • Deploying Your Experiment
      • Database
      • Hosting
    • Managing the Data
    • Using Custom Collections
  • Conceptual Overview
    • Structure
    • Game Life Cycle
      • Customising when players submit stages
    • Concepts
    • Randomization & Batches
    • API
  • FAQ
    • I need help!
    • The Processes and Elements of an Empirica Experiment
    • Managing Players and Games
  • Community Demos
    • Guess The Correlation
    • Random Dot Motion
    • Room Assignment
  • Tips & Tricks
    • Helpful Linux Commands
    • Code Editors
  • Links
    • Empirica website
    • Twitter
    • GitHub
Powered by GitBook
On this page
  • Commands
  • Tips for Windows WSL users
  • Viewing, accessing, and modifying your files

Was this helpful?

  1. Tips & Tricks

Helpful Linux Commands

Here is a list of helpful commands that should enhance your experience with the command line in Linux and WSL.

Commands

To find in which directory you currently are, use:

pwd

To list all the files and folders in your directory, use:

ls

To navigate between directories use cd followed by the path or name of the directory you want to access. If you start typing a location that is present in your current directory, you can then use the TAB key to autocomplete the name of a directory.

cd <directory>

To go up one directory, use:

cd ..

To go back to the root (/home/<user>), use:

cd ~

To delete a file, use:

rm <filename>

To delete a directory, use:

rm -r <directoryname>

Now that you have run multiple commands, and that you will be launching Empirica apps, there are a few useful tricks you should know:

  • Use ctrl+l to clear your command line.

  • Use ctrl+c to cancel (whilst writing it) or interrupt (when it is running) a command.

Tips for Windows WSL users

Viewing, accessing, and modifying your files

If you correctly installed WSL 2, you can view, access, and modify the files and folders in your WSL directly from your explorer. To open up the WSL in your explorer use:

explorer.exe .

Nevertheless, you will also need to get accustomed to using the command line to navigate in, and use, the the files and folders in your WSL directory. Here are some useful commands.

Head over to our Code Editors advice page to find out how to use our recommended code editor with Windows WSL:

PreviousRoom AssignmentNextCode Editors

Last updated 4 years ago

Was this helpful?