Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r <session_name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q.3: What does `~` mean? | |
A.3: The shell is parked in Q0h313th's home directory which can be accessed by `~` on the computer called `pico-2019-shell1` | |
Note: the full path for `~` can be expanded to `/home/Q0h313th/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q.2: What does `pico-2019-shell1` mean? | |
A.2: The shell is on a computer called "pico-2019-shell1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q.1: What does `Q0h313th` mean? | |
A.1: The user named "Q0h313th" is logged into this shell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Q.4: What does `$` mean? | |
A.4: `$` is a separator. Everything before it is the computer generated prompt and everything after is the user typed command | |
Note on answer: Most example commands I show will start with `$` just as an indicator that the example command is ran in the shell. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" sy: set Embedded JavaScript (ejs) files to have HTML syntax highlighting | |
" (note: ejs files might actually support more syntax than just HTML?) | |
" src: https://t.co/M503WdtzNh | |
autocmd BufNewFile,BufRead *.ejs set syntax=html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
printf("Hello World!\n"); | |
} |