Danilobanjac - Bash Scripting Language Cheat Sheet
Danilobanjac - Bash Scripting Language Cheat Sheet
clear Clears the screeen. echo "here is Double >> will add to file.
sh filename.sh Execute Bash Script. : > wood.txt This will empty the whole file, remeber ":" that says do
nothing.
./filename.sh Other way of executing bash script.
rm wood.txt Will remove the file completely.
ls -l See all file permissions inside a folder.
touch test1 test2 for example if we create a hundreds of file with similar
chmod +x This will add execute permission to the file.
test3 test4 name how we could delete them all or select them all?
filename.sh
(Solution below).
ls --help This will open all available commands.
rm test* ("*" astrix sign will mark everything that begins with
ls --help | grep This will grab more information about "-U" command. test and delete it.
"\-U"
echo "here is This will write to the file that we first created. Press "a" In order to start editing the file.
something use
Press "esc" In order to quit editing the file.
it" > wood.txt
Write ":" To allow you to save or quit or write to file.
cat wood.txt This will get us the output of the file.
Write ":wg" To write those changes and quit with saving.
cat This will take as many files as we want and store the
{testfile01,testfil content of those file in one file in this case "test00". Write ":wg!" To force this action.
Part One (Variables and Parameters) Part One (Variables and Parameters) (cont)
Part One (Variables and Parameters) (cont) Bash Script Programming Language Basics
Bash Script Programming Language Basics (cont) Bash Script Programming Language Basics (cont)
Bash Script Programming Language Basics (cont) Bash Script Programming Language Basics (cont)