LogoLogo
  • Introduction
  • Getting Started
    • Setup
      • Windows WSL Instructions (new)
      • Windows WSL Instructions
      • Linux Instructions
    • Creating your experiment
    • Running your experiment
    • Updating your experiment
  • Conceptual Overview
    • Game Life Cycle
      • Customising when players submit stages
    • Concepts
    • Randomization & Batches
    • API
  • Guides
    • V2 Migration
    • Managing the Data
    • Special Empirica Components
    • The Admin Panel
    • Deploying Your Experiment
      • Ubuntu tutorial
  • Tutorials
    • Beginner Experiment: Prisoner's Dilemma
      • Part 1: Before you start
      • Part 2: Creating the Experiment in Empirica
      • Part 3: Getting Accustomed to the Code
      • Part 4: Coding the Prisoner's Dilemma Game
        • Part 4.1: Removing example code
        • Part 4.2: Intro Text
        • Part 4.3: Set up the game stages
        • Part 4.4: Build the "Choice" React Component
        • Part 4.5: Build the "Result" React Component
        • Part 4.6: Compute the Score
      • Part 5: Customizing the experiment
        • Part 5.1: Changing the number of rounds
        • Part 5.2: Turning the chat on and off
      • Part 6: Deployment
  • FAQ
    • I need help!
    • The Processes and Elements of an Empirica Experiment
    • Managing Players and Games
  • Resources
    • Helpful Linux Commands
    • Code Editors
    • Javascript and React
  • 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?

Edit on GitHub
Export as PDF
  1. Resources

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:

PreviousManaging Players and GamesNextCode Editors

Last updated 3 years ago

Was this helpful?