[game] Commands role play - Community & Forums Related Discussions
Users browsing this thread: 4 Guest(s)
|
|||
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. |
|||
|
|||
This looks like fun -- as there was no initial command, I'm assuming I'll start with just that.
Code: $ bash | rev |
|||
|
|||
Code: [user@localhost ~] Code: ls | wc -l |
|||
|
|||
Wew, having a difficult start.
Result: Code: segamI Next code, a lot easier: Code: pwd Edit: Okay, this has become obsolete now. |
|||
|
|||
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 |
|||
|
|||
There are multiple responses to thlst, so I propose to continue by quoting the command we are "answering" to.
|
|||
|
|||
okie.
(15-04-2016, 02:11 PM)fuyuki Wrote: next: Code: # h t t p : / / n i x e r s . n e t let's get outta rev hell, folks. Code: [user@localhost ~] exit |
|||
|
|||
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. |
|||
|
|||
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 |
|||
|
|||
(16-04-2016, 08:36 AM)sshbio Wrote: uname -a Code: You have mail in /home/user/mail/INBOX 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 |
|||
|
|||
>Loled at the title. Is it him?
Yes, it is. I just needed a name with non-ASCII characters. And I find he is quite interesting. Code: cd $(dirnam $(find / -name Makefile | sed -n 2p)) && make Code: {A lot of output by a C compiler, it seems} A few hours later: Code: #wow, that takes a long time to compile! |
|||
|
|||
(18-04-2016, 09:35 AM)pranomostro Wrote: make -B >/dev/null &; pwd Code: /usr/src/lunix Code: $ grep -r torvalds Linus are you here !? |
|||
|
|||
|
|||
Ah! I'm stuck! I need to learn about networking, and this is the occasion to get started.
(20-04-2016, 01:07 AM)venam Wrote: cd && netstat -tulpen So I'll go with this: Code: Active Internet connections It's interesting, now I'll try to back it up so that I can study it elsewhere. How will I do this... Code: $ sudo^U mount |
|||
|
|||
Code: $ sudo mount This replied Code: /dev/sda1 on / type ext4 (rw,errors=remount-ro) Let's try this...maybe there's an intruder: Code: > lastlog |
|||
|
|||
(27-04-2016, 12:45 AM)venam Wrote: > lastlog Code: Username Port From Latest Wait what? A very old user? Code: > sed -n /bkdr/ /etc/passwd |
|||