0
0

More than 5 years have passed since last update.

Linuxコマンド

Posted at

■Linuxコマンド
 ◆ユーザー作成:
    1.useradd ユーザー名
    2./usr/sbin/adduser -g users -G wheel -d /home/ユーザー名 -s /bin/tcsh ユーザー名

 ◆ユーザー確認:id -a ユーザー名

 ◆パスワード作成:passwd ユーザー名

 ◆ユーザー削除:userdel -r ユーザー名

 ◆ファイルサイズ表示:du -sh
   ・ファイルサイズ0:
     1.cat /dev/null > 指定ファイル名
     2.cp /dev/null 指定ファイル名

 ◆ファイルの文字コードの確認コマンド
   kcc -c ファイル名
   nkf --guess ファイル名

■Apache
 ◆httpd -t シンタックスチェック

■キーボード操作
 ◆WIndowの移動⇒Alt+スペース、Mキー

■マシンAとマシンB間でRSA]認証を使ってログイン
 ◆RSA鍵作成:ssh-keygen -t rsa
    ・作成されるファイル
     公開鍵:id_rsa.pub→RSA鍵を作ったサーバーへ転送する転送元サーバー
     秘密鍵:id_rsa→RSA鍵を作成したサーバーの置く

    ・転送コマンド
     →scp -i

0
0
0

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