LoginSignup
0
0

More than 1 year has passed since last update.

自分用チートシート

Posted at

●●●●●Windowsサーバーで「tailf」コマンドを打ちたい!●●●●●

Get-Content -Path <ファイルパス> -Wait -Tail <行数> ←この行数分ログが出る

●●●●●PowerShellでのログを残したい!●●●●●

Start-Transcript <ファイル名> -append
Stop-Transcript

●●●●●tarファイルの解凍●●●●●

圧縮
tar -cvf xxxx.tar directory
解凍
tar -xvf xxxx.tar

圧縮
tar -zcvf xxxx.tar.gz directory
解凍
tar -zxvf xxxx.tar.gz

●●●●●SELinuxの解除無効化●●●●●

# vi /etc/selinux/config
SELINUX=enforcing
→disabledに変更
→rebootで再起動必要!!

●●●●●vi(less) コマンド中で検索する(連続)●●●●●

上から順番に検索する「/」
下から検索を行う「?」
順方向に次の検索結果へジャンプする「n」
逆方向に前の検索結果へジャンプする「N」

●●●●●Windowsイベントログでのイベント作成コマンド●●●●●

eventcreate /ID 999 /L application /SO hoge /T INFORMATION /D "Test"

●●●●●LinuxでPythonを抜ける●●●●●

Ctrl+D

●●●●●過去に実行したコマンドをすぐ再実行したい●●●●●

history コマンドを実行
!<番号> で過去のコマンドを実行できる!

●●●●●Windowsでの画面録画の方法●●●●●

Windows+Gで操作パネルを開く
Windows+Alt+Rで録画開始

●●●●●AWSのCLIインストールとその後の動き●●●●●

====
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
====
上記をまとめて実行。
0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0