Skip to content

Instantly share code, notes, and snippets.

@flappyBug
Created August 28, 2020 14:18
Show Gist options
  • Save flappyBug/15aae52df9b1c68d713ba9806a07b3a3 to your computer and use it in GitHub Desktop.
Save flappyBug/15aae52df9b1c68d713ba9806a07b3a3 to your computer and use it in GitHub Desktop.
Shell commands for Linux practice
mkdir ~/cli-practice; cd $_
touch readme.md
echo Hi there, this is a readme file. > readme.md
echo This is the second line of the readme >> readme.md
mv readme.md readme.txt
mkdir document
mv readme.txt document/introduction.txt
cp document/introduction.txt document/readme.txt
echo The quick brown fox jumps over a lazy dog > document/readme.txt
cp -r document docs
rm -r document
mkdir -p parent/child/docs
cp docs/introduction.txt $_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment