Skip to content

Commit 4584cf3

Browse files
committed
updated after RSMAS tutorial
1 parent 2122e0a commit 4584cf3

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

command-line/README.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ This tutorial works best if you are using the Bash shell. Linux and macOS come s
1010
2. Next best option: Install a Linux virtual machine like [VirtualBox](https://www.virtualbox.org) and use the Terminal that comes with it. This takes more time but gives you access to a virtual Linux machine on your PC.
1111
3. Last resort: Use Windows PowerShell. This has some functionality, as you saw in Appendix A of Shaw. But many of the commands below will not work, including `cd` (by itself), `cd -`, `touch`, `cat` (try `type` or a text editor), `head`, `tail`, and others.
1212

13-
### Overview of Part II
13+
### Overview of Part I
1414

15-
#### Setup
15+
Setup
1616

1717
* Open a shell in Terminal (Mac/Linux) or GitBash (Windows)
1818
* Create a working directory for the course, and a lessons directory inside that
1919
* Copy the day's lesson from GitHub to your lessons folder
2020

21-
#### Basic commands and skills
21+
Basic commands and skills
2222

2323
* Moving between directories
2424
* Absolute and relative paths
@@ -28,10 +28,12 @@ This tutorial works best if you are using the Bash shell. Linux and macOS come s
2828
* Tab-completion of commands and paths
2929
* GUI and command-line text editors
3030

31-
#### Customization
31+
Text editors
32+
33+
* GUI text editors
34+
* Command-line text editors
3235

33-
* Text editors
34-
* Terminal
36+
Customizing your terminal
3537

3638
### Basic commands
3739

@@ -105,19 +107,28 @@ See the section [The Nano Text Editor](https://github.com/cuttlefishh/python-for
105107

106108
### Customizing your terminal
107109

108-
See the section [Setting up your bash environment](https://github.com/cuttlefishh/python-for-data-analysis/blob/master/lessons/lesson02.md#setting-up-your-bash-environment) in my course [Python For Data Analysis](https://github.com/cuttlefishh/python-for-data-analysis) for instructions on customizing your bash environment.
110+
See the section [Setting up your bash environment](https://github.com/cuttlefishh/python-for-data-analysis/blob/master/lessons/lesson02.md#setting-up-your-bash-environment) in my course [Python For Data Analysis](https://github.com/cuttlefishh/python-for-data-analysis) for instructions on customizing your bash environment. More information is in the [GNU Bash Manual](https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Bash-Startup-Files).
109111

110-
For example, add this to your `.bash_profile` to have your `rm` command ask before deleting a file:
112+
For example, add this to your `~/.bash_profile` to have your `rm` command ask before deleting a file:
111113

112114
```
113115
alias rm='rm -i'
114116
```
115117

118+
Add this to your `~/.bash_profile` to color the ouput of `ls`:
119+
120+
```
121+
export CLICOLOR=1
122+
export LSCOLORS=GxFxCxDxBxegedabagaced
123+
```
124+
125+
126+
116127
## Part II
117128

118129
### Overview of Part II
119130

120-
#### Intermediate commands and skills
131+
Intermediate commands and skills
121132

122133
* Bash variables and commands
123134
* Executing bash scripts and dot-files

0 commit comments

Comments
 (0)