Skip to content

Instantly share code, notes, and snippets.

@takurx
Created September 19, 2023 12:15
Show Gist options
  • Select an option

  • Save takurx/a533ae6cba119edef2a95aebe5176268 to your computer and use it in GitHub Desktop.

Select an option

Save takurx/a533ae6cba119edef2a95aebe5176268 to your computer and use it in GitHub Desktop.
shell, systemd

log

bash

chino@chino-Legion-5-15IAH7H:~$ a="a"
chino@chino-Legion-5-15IAH7H:~$ echo a
a

irb

chino@chino-Legion-5-15IAH7H:~$ irb
irb(main):001:0> a=1
irb(main):002:0> a
=> 1
irb(main):003:0> exit()

python

chino@chino-Legion-5-15IAH7H:~$ python
Python 3.8.10 (default, May 26 2023, 14:05:08) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> b=1
>>> b
1
>>> exit()

whatis

chino@chino-Legion-5-15IAH7H:~$ whatis bash
bash (1)             - GNU Bourne-Again SHell

sh

chino@chino-Legion-5-15IAH7H:~$ sh
$ ls
Arduino					     mono_crash.mem.46212.1.blob
......
......
MATLAB					     Works
$ ps1
sh: 2: ps1: not found
$ exit

systemctl --user

chino@chino-Legion-5-15IAH7H:~$ systemctl --user
  UNIT                                                                         >
  dev-fuse.device

systemctl

chino@chino-Legion-5-15IAH7H:~$ systemctl 
  UNIT                                                                         >
  proc-sys-fs-binfmt_misc.automount

systemctl status

chino@chino-Legion-5-15IAH7H:~$ systemctl status
● chino-Legion-5-15IAH7H
    State: running
     Jobs: 0 queued
   Failed: 0 units
    Since: Mon 2023-09-18 06:55:10 JST; 1 day 1h ago
   CGroup: /
           ├─49652 bpfilter_umh
           ├─user.slice 
           │ └─user-1000.slice 
......
......
           │     ├─ 1897 /usr/bin/ssh-agent /usr/bin/im-launch env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --systemd --session=ubuntu
           │     └─47148 /usr/bin/ssh-agent -D -a /run/user/1000/keyring/.ssh
           ├─init.scope 
           │ └─1 /sbin/init splash
           └─system.slice 
             ├─irqbalance.service 
             │ └─879 /usr/sbin/irqbalance --foreground
             ├─bolt.service 
             │ └─866 /usr/libexec/boltd
......
......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment