A
A
Alexey Green2014-04-22 21:58:12
linux
Alexey Green, 2014-04-22 21:58:12

How to implement text output in Linux console after command?

I'm new to linux and would like to know how to output text or ASCII art when I type some command like:

[email protected]:~# easteregg
Hello world!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MintTea, 2014-04-22
@lexforceterror

Fastest:
Method two:
Method three:

# Либо открываете этот файл в редакторе и пишете на любом известном вам яп
echo -e '#!/bin/bash \n echo Hello world' > /usr/local/bin/easteregg 
chmod +x /usr/local/bin/easteregg

The first will work within the shell session, the second will become permanent, but only for the current user, the third will be available to everyone and always, but will require root rights.
Enough for now?:)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question