-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHEAT_SHEET
52 lines (47 loc) · 2.84 KB
/
CHEAT_SHEET
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-------------------------------------------------------------------------------------------------------------
,--. ,--.
| |-. ,--,--. ,---. | ,---.
| .-. ' ' ,-. | ( .-' | .-. |
| `-' | \ '-' | .-' `) | | | |
`---' `--`--' `----' `--' `--'
,---. ,--,--,--. ,---. ,--.--. ,---. ,---. ,--,--, ,---. ,--. ,--.
| .-. : | | | .-. : | .--' | .-. | | .-. : | \ | .--' \ ' /
\ --. | | | | \ --. | | ' '-' ' \ --. | || | \ `--. \ '
`----' `--`--`--' `----' `--' .`- / `----' `--''--' `---' .-' /
,--. ,--. ,--. `---' `---'
| |,-. `--' ,-' '-.
| / ,--. '-. .-'
| \ \ | | | |
`--'`--' `--' `--'
Bash is a shell, aka a program which allows you to interact with your system by running commands you enter.
There are a lot of commands in bash, but you can make it through this game with just a handful of basic commands.
-------------------------------------------------------------------------------------------------------------
command usage example
-------------------------------------------------------------------------------------------------------------
./[scriptname] run a bash script ./check.sh
ls list contents of a directory ls [dir]
ls -a list contents including hidden files ls -a [dir]
cd change directory cd dir_path
~ home directory cd ~/Downloads
. current directory ls .
.. previous directory cd ..
cat display contents of a text file cat file
less display text file in scrollable view less file
touch create a(n empty) file touch file
mkdir create a directory mkdir dir
cp copy files or directories cp file1 [file2...] destination_dir
cp file1 [file2...] destination_dir
mv move files or directories mv file1 [file2...] destination_dir
mv dir1 [dir2...] destination_dir
rm remove files rm file1 [file2...]
rm -r remove directories rm -r dir1 [dir2...]
man get help about any command man rm
-------------------------------------------------------------------------------------------------------------
Work hard, you have a mission to accomplish!
/\__/\ __________________________
/ \ | I'll find you, my |
/ > o < \ /| beloved ka7k! |
( ) / |________________________|
\ \ / \ / /
\ v____v /
W W