Emojiterm: Difference between revisions

From Hackers & Designers
No edit summary
Line 98: Line 98:
You can search through πŸ“ƒ by grepping πŸ”.Β  So to πŸ” for πŸ‘― on 🌏.
You can search through πŸ“ƒ by grepping πŸ”.Β  So to πŸ” for πŸ‘― on 🌏.


Β Β  $ πŸ” πŸ‘― 🌏
Β Β  $ πŸ” πŸ‘― 🌏


== Pipes | ==
== Pipes | ==

Revision as of 03:45, 19 September 2017

Here you'll be given a quick Terminal tutorial outlining some introduction commands and inputs to give you a better grasp on the command line.

Following the instructions below in order will give you a step-by-step instruction that should get you up to speed with the basics of using the Terminal.

The traditional Unix commands have been translated into emoji in order to call to question the arbitrary English based command naming conventions, being replaced with the pictographic language of emoji.

Each $ is a new line to try in the terminal. DO NOT COPY THE $.

NOTICE

You will need to download a bash script and execute it to make the emoji commands available. Here is how to do this...

  $ curl -O https://gist.githubusercontent.com/bgraves/20af9279100fc75599eb1db094d90e69/raw/bb4c8aafb3980a7b16e44b4d6b1d8b809c26fe0b/emoji.sh
  $ source emoji.sh

Who am i πŸ™‹

On Unix based systems like Linux or Mac OS, you are a user πŸ™‹. To find out who you are you can always ask!

   $ πŸ™‹

Where am i? πŸ€”

Directories are folders πŸ“. When you open the terminal you are in your home 🏠 folder or directory. If you get lost you can ask!

   $ πŸ€”

What is in πŸ“?

You can see the contents of a πŸ“ by listing them.

   $ πŸ“ƒ

Navigating to a new πŸ“

Think of πŸ“ as a tree 🌲. You can climb up and down the 🌲.

To go in a πŸ“ up the tree.

  $ πŸ“ Documents

To go down the tree.

  $ πŸ‘‡

Making a new πŸ“

  $ βœ¨πŸ“ 🌞

Putting some stuff together πŸ€”

  $ πŸ“ 🌞
  $ πŸ€”
  $ πŸ‘‡
  $ πŸ€”

Creating files πŸ“

Let's create πŸ“ in πŸ“ 🌞.

 $ πŸ“ 🌞

You can create an empty file by touching πŸ‘ˆ it and naming it.

  $ πŸ‘ˆ 🌏

Was the 🌏 πŸ“ created? List the contents of 🌞.

  $ πŸ“ƒ

Let's add some πŸ‘― to 🌏. You can do this by simply echoing πŸ“£ πŸ‘―, and directing it into 🌏.

  $ πŸ“£ πŸ‘― > 🌏

To see if 🌏 now has πŸ‘―, you have to ask the cat 😺.

  $ 😺 🌏

Let's add more πŸ‘― to 🌏, and then count πŸ’― them! The >> means to add/append to 🌏.

  $ πŸ“£ πŸ‘― >> 🌏
  $ πŸ“£ πŸ‘― >> 🌏
  $ πŸ“£ πŸ‘― >> 🌏
  $ πŸ’― 🌏

The πŸ’― show number of πŸ‘―, number of lines and number of bytes.

Deleting ❌

Let's make a second earth, see if it's created and then delete it.

  $ πŸ‘ˆ 🌎
  $ πŸ“ƒ
  $ ❌ 🌎

Searching πŸ”

You can search through πŸ“ƒ by grepping πŸ”. So to πŸ” for πŸ‘― on 🌏.

  $ πŸ” πŸ‘― 🌏

Pipes |

You can send output from one command into another with a pipe |. What does the following do?

  $ 😺 🌏 | πŸ’―

The Internet w/ curl πŸ“‘

  $ πŸ“‘ http://www.baidu.com/

Cut/Replace βœ‚οΈ

  $ βœ‚οΈ -i -e 's/πŸ‘―/πŸ‘«/g' 🌏
  $ 😺 🌏

Put some stuff together...

  $ πŸ“‘ http://www.baidu.com/ | βœ‚οΈ -e 's/</πŸ‘―/g' 

Now create your own commands, and we'll try to guess what they do!