# Less known but useful Commmands

# Redo last command but as root

```bash
sudo !!
```

## Open an Editor, write a bash command
#### (and execute in shell) 

```bash
ctrl+x+e
```

## Create superfast Ramdisk

```bash
mkdir -p /mnt/ramm
mount -t tmpfs tmpfs /mnt/ram -o size=8192M
```

## fix a really long command
#### (that you messed up)

``` bash
fc
```

## quickly create folders

```bash
mkdir -p folder/{sub1,sub2}/{sub1,sub2,sub3}
```

## exit terminal but leave all processes running

```bash
disown -a && exit
```