ユーザ用ツール

サイト用ツール


os:ubuntu:basic_operation

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
os:ubuntu:basic_operation [2020/12/01 04:17]
michiya
os:ubuntu:basic_operation [2021/01/09 14:37] (現在)
行 9: 行 9:
 ====== 自動更新を停止 ====== ====== 自動更新を停止 ======
  
 +/etc/apt/apt.conf.d/20auto-upgradesを編集する.
 <code> <code>
 +APT::Periodic::Update-Package-Lists "1";
 +APT::Periodic::Unattended-Upgrade "1";
 +</code>
 +を以下に変更.
 +<code>
 +APT::Periodic::Update-Package-Lists "0";
 +APT::Periodic::Unattended-Upgrade "0";
 +</code>
 +  * 0:自動更新OFF
 +  * 1:自動更新ON
 +====== 基本パッケージのインストール ======
 +===== 開発に関する必須ツール =====
  
 +gcc, g++, makeなど基本ツールのインストール
 +
 +<code>
 +# apt install build-essential
 </code> </code>
 +
 +====== ファイル検索 ======
 +
 +相対パス
 +<code>
 +$ find -name hoge.txt
 +</code>
 +
 +絶対パス
 +<code>
 +$ find `pwd` -name hoge.txt
 +</code>
 +
 +====== 特定の文字列を含むファイルの検索 ======
 +
 +<code>
 +$ find <dir> -type f -print | xargs grep <str>
 +</code>
 +
 +<dir>は検索するディレクトリ,<str>は検索したい文字列.
 +
 +====== 圧縮,解凍 ======
 +
 +圧縮,解凍 (tar.gz)
 +<code>
 +$ tar zcvf hoge.tar.gz <dir>
 +$ tar zxvf hoge.tar.gz
 +</code>
 +
 +圧縮,解凍 (tar.bz2)
 +<code>
 +$ tar jcvf hoge.tar.bz2 <dir>
 +$ tar jxvf hoge.tar.bz2
 +</code>
 +
 +圧縮,解凍 (tar.xz)
 +<code>
 +$ tar Jcvf hoge.tar.xz <dir>
 +$ tar Jxvf hoge.tar.xz
 +</code>
 +
 +
 +
os/ubuntu/basic_operation.1606796243.txt.gz · 最終更新: 2021/01/09 14:37 (外部編集)