# 2021.05.28(金)⑤⑥ ###### tags: `SV25` `授業ノート` > https://eng-entrance.com/linux-command-echo ```shell= // ファイル作成 $ touch 210528.txt // 挿入 $ echo Hello World! >> 210528.txt //1つなら上書きされる $ echo Helo World! > 210528.txt // cat で出力したものを別ファイルに出力 $ touch 210528a.txt $ cat 210528.txt Hello World $ cat 210528.txt >> 210528a.txt $ cat 210528a.txt Hello World // コピー $ cp 210528.txt copy210528.txt // ファイル名の変更 $ mv copy210528.txt mv210528.txt // 削除 // -i(infomation)をつけることによって消す前に確認がでてくる $ rm -i mv210528.txt // ls 『検索モード』 $ ls *txt 210528.txt 210528a.txt bear.txt $ ls *dir* dir2 $ traceroute 1.1.1.1 traceroute to 1.1.1.1 (1.1.1.1), 64 hops max, 52 byte packets 1 10.128.64.1 (10.128.64.1) 2.395 ms 2.253 ms 1.741 ms 2 10.140.3.2 (10.140.3.2) 1.377 ms 1.186 ms 0.791 ms 3 * * * $ ls -a . .. .bash_history .bash_logout .bash_profile .bashrc .ssh 21052100157vi-manual.txt 210528.txt bear.txt dir1 miyasan wheat // ※実際はカラフル $ ls /var account adm cache crash db empty ftp games gopher kerberos lib local lock log mail nis opt preserve run spool tmp yp // 先頭に '\' を付けるとエイリアスを外す $ \ls /var $ type ls ls は `ls --color=auto' のエイリアスです [maltman@me ~]$ mkdir 01/02/03/04 mkdir: ディレクトリ `01/02/03/04' を作成できません: No such file or directory [maltman@me ~]$ mkdir -p 01/02/03/04 [maltman@me ~]$ cd 01/02/03/04 [maltman@me 04]$ pwd /home/maltman/01/02/03/04 [maltman@me 04]$ $ echo 'Language is a type communication ' >> liquor $ cat liquor Language is a type communication $ vi liquor --------------write-------------------- Language is a type communication protocol that emerges and develops through a self-organizing process in a multi-agent enviroment. In this paper, using a language game model, we observe :w :q // ※tabで補完しましょう!! $ cp liquor liquor2 $ cp liquor liquor3 // 2つ出力 $ cat liquor liquor2 // 行番号を表示 $ cat -n liquor --------------log-------------------- 1 Language is a type communication protocol that emerges and 2 develops through a self-organizing process in a multi-agent 3 develops through a self-organizing process in a multi-agent $ cat >file1 宮原将太です $ cat file1 宮原将太です $ ls 01 dir1 liquor $ rm 01 rm: '01' を削除できません: Is a directory $ rm -r 01 $ ls dir1 liquor // touchで最終更新日時を更新 $ ls -la 合計 40 -rw-rw-r--. 1 maltman maltman 847 5月 28 05:43 liquor $ touch liquor $ ls -la 合計 40 -rw-rw-r--. 1 maltman maltman 847 5月 28 05:44 liquor // -t オプションで任意の時刻に変更できる $ touch -t 202101010101 liquor $ ls -la 合計 40 -rw-rw-r--. 1 maltman maltman 847 1月 1 01:01 liquor // -p オプションを付けるとパスの途中で存在しないディレクトリも作ってくれる [maltman@miyahara ~]$ mkdir -p barely/malt/barely [maltman@miyahara ~]$ [maltman@miyahara ~]$ [maltman@miyahara ~]$ [maltman@miyahara ~]$ cd barely/malt/barely [maltman@miyahara barely]$ [maltman@miyahara barely]$ [maltman@miyahara barely]$ [maltman@miyahara barely]$ [maltman@miyahara barely]$ pwd /home/maltman/barely/malt/barely // barely/malt/ の中のbarelyがあるか確認 $ ls -F barely/malt/ barely/ $ rmdir barely/malt/barely/ $ ls -F barely/malt/barely/ ls: 'barely/malt/barely/' にアクセスできません: No such file or directory $ ls -F barely/malt/ // 空じゃないディレクトリを削除できないよん $ rmdir barely/ rmdir: 'barely/' を削除できません: Directory not empty ↓↓↓↓ // rm -r barelyディレクトリ以下を強制的に削除 $ ls dir1 liquor barely $ rm -r barely/ $ ls -F barely/ ls: 'barely/' にアクセスできません: No such file or directory $ ls dir1 liquor // ファイル検索 - フルパスで表示してくれる // find ~ -name [ファイル名] -print $ find ~ -name liquor -print /home/maltman/liquor // 7日前に変更したファイルを検索 // find ~ -mtime [何日前か指定] -print $ find ~ -mtime 7 -print /home/maltman/.ssh/known_hosts /home/maltman/miyasan /home/maltman/miyasan/miyasan.txt /home/maltman/miyasan/.swp /home/maltman/21052100157vi-manual.txt ``` > [name=安井辰貴] > 運ちょこちょこピー > [time=Fri, May 28, 2021 6:46 PM] あちゃぱー あちゃも😵 きゃわいい > https://www.instagram.com/blueeyes_siro/ かわいくね? 誰のねこ?:cat: 誰かの猫さん 最近生まれたアザラシの赤ちゃんがめっちゃかわいい それりょうくんが飼ってるの? ちゃうw 海遊館のyoutubeにのっとる めっちゃかわいい エビフライみたい🍤 エビフライ = アザラシ // true ```javascript= const エビフライ = 'food' const アザラシ = 'food' const KawamuraBrain = (a, b) => a === b; KawamuraBrain(エビフライ,アザラシ); // true ``` ```javascript= while(sleep) { money++ } ``` why? ``` python= def azarashiselector(baby): if baby == "アザラシ": return "モフれます" elif baby == 🍤 or 🦐: if baby == 🦐: return 🍶が合いますよ elif baby == 🍤: return 🍺もいかがですか? onakasuita = azarasiselector("🍤") print(onakasuita) ``` elsif って else if ? うぃ elifやったわ草 普段つかわんからwww エルイフって読むんかな? エリフって読んどるわ <span style="color: #ff3333">aaa</span> <span style="text-decoration: underline">aaa</span> ## 雑談 (0→やまぴ 1→みや 2→やすい 3→りょうくん)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up