---
# System prepended metadata

title: 2021.05.21（月）⑤⑥
tags: [授業ノート, SV25]

---

# 2021.05.21（月）⑤⑥
###### tags: `SV25` `授業ノート`

毎回やることリスト　
```shell=

login: maltman
$ nmcli d
    ------------------ log -----------------
    DEVICE  TYPE      STATE     CONNECTION 
    enp0s3  ethernet  接続済み  enp0s3     
    enp0s8  ethernet  接続済み  enp0s8     
    lo      loopback  管理無し  --        
    ----------------------------------------
$ ip a s (ip address show)
    ------------------ log -----------------
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host 
           valid_lft forever preferred_lft forever
    2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
        link/ether 08:00:27:25:69:0c brd ff:ff:ff:ff:ff:ff
        inet 10.128.65.19/22 brd 10.128.67.255 scope global dynamic noprefixroute enp0s3
           valid_lft 707sec preferred_lft 707sec
        inet6 fe80::718d:529:ef7b:5d1b/64 scope link noprefixroute 
           valid_lft forever preferred_lft forever
    3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
        link/ether 08:00:27:70:eb:d1 brd ff:ff:ff:ff:ff:ff
        inet 192.168.56.101/24 brd 192.168.56.255 scope global dynamic noprefixroute enp0s8
           valid_lft 407sec preferred_lft 407sec
        inet6 fe80::f6fd:6ae1:146:52bb/64 scope link 
    ----------------------------------------

// disconnnectedの場合のみ
$ sudo nmcli con up enp0s8 //有効化
$ sudo nmcli con mod enp0s8 autoconnect yes //起動時有効化

win> ssh maltman@hostname.local
mac> ssh maltman@localhost.local

$ w ↩︎
    ------------------ log -----------------
     04:07:11 up 43 min,  2 users,  load average: 0.00, 0.00, 0.00
    USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
    maltman  tty1     -                03:24   16:31   0.03s  0.03s -bash
    maltman  pts/1    fe80::c64:3990:c 03:45    3.00s  0.04s  0.01s w
    ----------------------------------------
    
    load averageは直近1min,5min,15minのシステム負荷の値を表す

```
```shell=
$ scp [送りたいファイル]　[送りたい先]
scp……ssh copy　
mac> $ cat .ssh/id_rsa.pub
win> type .ssh/id_rsa.pub

```


```shell=
[maltman@miyahara ~]$ ls -l
合計 0
drwxrwxr-x. 3 maltman maltman 18  4月 23 07:10 dir1
drwxrwxr-x. 2 maltman maltman  6  4月 23 07:08 wheat
[maltman@miyahara ~]$ ls -la
合計 16
drwx------. 5 maltman maltman 120  5月 14 05:25 .
drwxr-xr-x. 4 root    root     38  4月 23 06:50 ..
-rw-------. 1 maltman maltman 552  5月 21 03:50 .bash_history
-rw-r--r--. 1 maltman maltman  18  7月 21  2020 .bash_logout
-rw-r--r--. 1 maltman maltman 141  7月 21  2020 .bash_profile
-rw-r--r--. 1 maltman maltman 376  7月 21  2020 .bashrc
drwx------. 2 maltman maltman  80  5月 14 06:03 .ssh
drwxrwxr-x. 3 maltman maltman  18  4月 23 07:10 dir1
drwxrwxr-x. 2 maltman maltman   6  4月 23 07:08 wheat
```
![](https://i.imgur.com/PAMYu8l.jpg)
![](https://i.imgur.com/oeNR2fH.jpg)
![](https://i.imgur.com/OTAVtEW.jpg)
![](https://i.imgur.com/JaiAe6Z.jpg)
![](https://i.imgur.com/un9J4HJ.jpg)
![](https://i.imgur.com/yiENCWP.jpg)
![](https://i.imgur.com/7TzLgKQ.jpg)
![](https://i.imgur.com/fStldoI.jpg)
![](https://i.imgur.com/fvWcO9u.jpg)
![](https://i.imgur.com/Iu0AeBr.jpg)
![](https://i.imgur.com/N0pkFQs.jpg)
![](https://i.imgur.com/oRMkJ2s.jpg)
![](https://i.imgur.com/uWhcY8l.jpg)
![](https://i.imgur.com/3wHMTyv.jpg)
![](https://i.imgur.com/tdpWrfD.jpg)
![](https://i.imgur.com/xmMzv2G.jpg)
![](https://i.imgur.com/PvoBNfB.jpg)
![](https://i.imgur.com/NyjRIGB.jpg)
![](https://i.imgur.com/fUPJwYB.jpg)
![](https://i.imgur.com/L2oa9av.jpg)
![](https://i.imgur.com/ZwXeMTF.jpg)
![](https://i.imgur.com/eDBOV2n.jpg)


操作に迷ったら英語入力に切り替えてEsc
```vi=
vi filename // viエディタ開く
yy 200p 
u //uで戻る
dd //行カット
p // 下に描く
: wq! //保存して終了
shift zz //　保存して終了
cat bear.txt //中身を見る
vi bear.txt //中身に入る
ctrl + z //途中で退場
```

jobsコマンドで今停止している一覧見れる
fg 番号で再開できる

vimのインストール
```shell=
$ sudo dnf -y install vim
```

・viエディタに必要なこと
入力/出力
vi


提出
 scp 21052100650vi-manual.txt maltman@nagaya.local:~/210521vi-manual/

<span style="color: #ff3333">aaa</span>
<span style="text-decoration: underline">aaa</span>
## 雑談 (0→やまぴ 1→みや 2→やすい 3→りょうくん)
札幌の会社その場で合格した笑
次が最終らいしけどふつうに受かりそう
GMOの頑張り次第で東京行ける

