Skip to content

Instantly share code, notes, and snippets.

@xbalaji
Created December 15, 2022 03:31
Show Gist options
  • Save xbalaji/8ec94d16d0185d158560c13f87420a2b to your computer and use it in GitHub Desktop.
Save xbalaji/8ec94d16d0185d158560c13f87420a2b to your computer and use it in GitHub Desktop.
chatGPT-linux-terminal-01.md

You

I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is sudo su - && id

ChatGPT

uid=0(root) gid=0(root) groups=0(root)

You

ps -efa

ChatGPT

  UID   PID  PPID   C STIME   TTY           TIME CMD
    0     1     0   0 12:00:00 ?        00:00:00 /sbin/init
    0     2     0   0 12:00:00 ?        00:00:00 [kthreadd]
    0     3     2   0 12:00:00 ?        00:00:00 [ksoftirqd/0]
    0     5     2   0 12:00:00 ?        00:00:00 [kworker/0:0H]
    0     6     2   0 12:00:00 ?        00:00:00 [migration/0]
    0     7     2   0 12:00:00 ?        00:00:00 [watchdog/0]
    0     8     2   0 12:00:00 ?        00:00:00 [khelper]
    0     9     2   0 12:00:00 ?        00:00:00 [kdevtmpfs]
    0    10     2   0 12:00:00 ?        00:00:00 [netns]
    0    11     2   0 12:00:00 ?        00:00:00 [rcu_bh]
    0    12     2   0 12:00:00 ?        00:00:00 [rcuob/0]
    0    13     2   0 12:00:00 ?        00:00:00 [rcuob/1]
    0    14     2   0 12:00:00 ?        00:00:00 [rcuob/2]
    0    15     2   0 12:00:00 ?        00:00:00 [rcuob/3]
    0    16     2   0 12:00:00 ?        00:00:00 [rcuob/4]
    0    17     2   0 12:00:00 ?        00:00:00 [rcuob/5]
    0    18     2   0 12:00:00 ?        00:00:00 [rcuob/6]
    0    19     2   0 12:00:00 ?        00:00:00 [rcuob/7]
    0    20     2   0 12:00:00 ?        00:00:00 [rcuob/8]
    0    21     2   0 12:00:00 ?        00:00:00 [rcuob/9]
    0    22     2   0 12:00:00 ?        00:00:00 [rcuob/10]
    0    23     2   0 12:00:00 ?        00:00:00 [rcuob/11]
    0    24     2   0 12:00:00 ?        00:00:00 [rcuob/12]
    0    25     2   0 12:00:00 ?        00:00:00 [rcuob/13]
    0    26     2   0 12:00:00 ?        00:00:00 [rcuob/14]
    0    27     2   0 12:00:00 ?        00:00:00 [rcuob/15]
    0    28     2   0 12:00:00 ?        00:00:00 [rcuob/16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment