[game] Commands role play - Community & Forums Related Discussions
josuah
I propose a new forum game:

Most of us may use an unix system daily, and use the same commands over and again. For <code>ls</code>, I expect a list of directories and files, for <code>uname -A</code>, I expect some detailled name of the system.

I propose this: post commands, running them against an imaginary UNIX system, and imagine the output ourself. Just like a role-play where each would write in turn:

1. the output of the previous command.
2. the next command to execute.

Very simple example: Just after logging in:

<hr/>
Post 1

Code:
$ pwd

<hr/>
Post 2

Code:
Linux
Code:
$ pwd

<hr/>
Post 3

Code:
/z/j/o/strawberries
Code:
$ tac .bash_history | sed 10q

<hr/>

And so on and so on...

It should be rather easy at first, as we can "cheat" and have a look at our own system, but even if we do that, we may all have different systems in different states, and the challenge would then be to keep cohesion and keep the state of the system in mind.


(Optional roleplay) Wrote:At the end of the day, no more work ahead, I came to next street coffe before coming home, waiting for my friend to join me here in about an hour. That was a rather old place, with a lot of things stacked in all corners, a glittering light caught my eyes. It was the blinking carret of a screen: a terminal. Why would it be there? I had to check. No one seemed to pay attention, so I came and grabbed the keyboard. Nothing on screen, but the mere prompt:

Code:
$

P.S.: I have no prefered formatting, as long as it is readable and that we have fun!
Edit: It still would be better to tell whih command we are reffering to, to keep track of what is done.
neeasade
This looks like fun -- as there was no initial command, I'm assuming I'll start with just that.

Code:
$ bash | rev
thlst
Code:
[user@localhost ~]

Code:
ls | wc -l
pranomostro
Wew, having a difficult start.

Result:

Code:
segamI
cisuM
soediV
o4m.m.p857x323 | kečiČ jovalS ,secaps htiw emanoediv gnol oot yttihS
ia
otsrk

Next code, a lot easier:
Code:
pwd

Edit: Okay, this has become obsolete now.
fuyuki
Code:
pwd

result:

Code:
resu/emoh/~:tsoh@resu;0]

next:

Code:
rev .bashrc

edit: this was intentional, lets make up a fake (hopefully interesting) bashrc
josuah
There are multiple responses to thlst, so I propose to continue by quoting the command we are "answering" to.
neeasade
okie.

(15-04-2016, 02:11 PM)fuyuki Wrote: next:

Code:
rev .bashrc

Code:
#    h t t p : /  / n i x e r s . n e t
#
# ▀▀▀▀██▄ ▀▀▀▀▀ ▀▀▀ ███  ▀▀▀██▄ ▀▀▀▀██▄  ▀▀▀██▄
# ░░░ ███  ░░░  ░░░ ███ ░░░ ███ ░░░ ███ ░░░ ███
# ▒▒▒ ███  ▒▒▒  ▒▒▒ ███ ▒▒▒     ▒▒▒ ███ ▒▒▒
# ▓▓▓ ███  ▓▓▓  ▀▓▓▄██▀ ▓▓▓▄▄   ▓▓▓▄██▀ ▀▓▓▄▄▄
# ███ ███  ███  ███ ███ ███     ███ ███     ███
# ███ ███  ███  ███ ███ ███     ███ ███     ███
# ███ ███  ███  ███ ███ ███     ███ ███     ███
# ███ ███  ███  ███ ███ ███ ███ ███ ███ ███ ███
# ███ ███  ███  ███ ███ ███ ███ ███ ███ ███ ███
# ███ ███  ███  ███ ███ ███ ███ ███ ███ ███ ███
# ███ ███  ███  ███ ███ ███ ███ ███ ███ ███ ███
# ▀▀▀ ▀▀▀ ▀▀▀▀▀ ▀▀▀ ▀▀▀  ▀▀▀▀▀  ▀▀▀ ▀▀▀  ▀▀▀▀▀
#   i r c . u n i x . c h a t  #  n i x e r s
#

prompt='$ '


let's get outta rev hell, folks.

Code:
[user@localhost ~] exit
josuah
Nice! the srexin ASCII logo from orex!

(15-04-2016, 02:19 PM)neeasade Wrote: [user@localhost ~] exit

Code:
exit

In a NIXU system, there is always a 'de' command.

Code:
$ ed $(ls -a | head -1)

EDIT: To make it match with the output of pranomostro, I had to add <code>-a</code> to <code>ls</code> as <code>ed</code> does not edit directories.
josuah
Code:
bash: ed: command not found

It is really sad, but my Arch does not hav <code>ed</code> by default.

Which shameful system is it?

Code:
uname -a
josuah
(16-04-2016, 08:36 AM)sshbio Wrote: uname -a

Code:
You have mail in /home/user/mail/INBOX

Linux Aboriginal 1.4.4 #1 SMP Tue Nov 3 16:39:03 UTC 2015 x86_64 GNU/Linux

Damn! Aboriginal with toybox, so no <code>ed</code>, but <code>rev, wc -l, ls -a pwd</code> works.

What if <code>/bin/bash</code> is a symlink pointing to <code>/bin/sh</code>? I've alwasy seen this symlink in the other direction.

(15-04-2016, 02:03 PM)pranomostro Wrote: o4m.m.p857x323 | kečiČ jovalS ,secaps htiw emanoediv gnol oot yttihS

Loled at the title. Is it him? https://fr.wikipedia.org/wiki/Slavoj_%C5%BDi%C5%BEek


Build time!

Code:
cd $(dirname $(find / -name Makefile | sed -n 2p)) && make




Members  |  Stats  |  Night Mode