Data analysis 1 (Introduction)

Manipulating directories

command [action]
1.1 pwd [ prints working directory ]
1.2. ls [ displays available files in current directory ]
1.3. mkdir name [ creates new directory name ]
1.4. cd directory_path [ move to directory ]

To check your working directory just type:

    pwd    

Press "enter" to run the command after each line.

Let's move to the home directory and print the working directory. Type:

    cd ~/
    pwd

Now let's make a directory called 'zemi' and move into that directory. And verify our location. Type:

    mkdir zemi
    cd zemi
    pwd

*** Absolute versus relative paths ***

Absolute path: a complete path to a file or directory from the root directory. The root directory is the top-level directory of the file system

Relative path:: a path to a file or directory that is relative to the working directory. It specifies the location of the file or directory in relation to the working directory

To move up 1 directory relatively:

    cd ..

Your first program

command [action]
1.5. display [ displays strings and values of scalar expressions ]

    display "hello world"    

use " " for string (words)

    display hello world    

error: "hello not found"

    display "2+2"    

treated as string

    display 2+2    

treated as numbers