Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

コマンドを使う #1

Open
fr-sasaki opened this issue Jun 3, 2013 · 1 comment
Open

コマンドを使う #1

fr-sasaki opened this issue Jun 3, 2013 · 1 comment

Comments

@fr-sasaki
Copy link
Owner

https://github.com/fact-real/developers/wiki/%E9%96%8B%E7%99%BA%E7%A0%94%E4%BF%AE-Linux#

@fr-sasaki
Copy link
Owner Author

  • ホームディレクトリの下にworkディレクトリを作成してください
    • mkdir work
  • workディレクトリ内に移動してください
    • cd work/
  • その中にhello.shを作成してください
    • vi hello.sh
  • エディタを使いhello.shを次の通り編集してください echo "hello world";
  • hello.shをコマンドで実行してください
    • sh hello.sh
  • パーミッションを変更し、自分以外のユーザーがhello.shを読み書き実行できないようにしてください
    • chmod 700 hello.sh
  • hello.shをhello_copy.shにコピーしてください
    • cp hello.sh hello_copy.sh
  • hello.shをhello_move.shにリネームしてください
    • mv hello.sh hello_move.sh
  • hello_move.shを削除してください
    • rm -i hello_move.sh
  • ホームディレクトリに戻ってください
    • cd ~
  • workディレクトリをwork_copyにコピーしてください
    • cp -r work work_copy
  • work_copyディレクトリをwork_moveにリネームしてください
    • mv work_copy work_move
  • work_moveディレクトリを削除してください
    • rm -r work_move
  • 今まで発行したコマンドの履歴を確認してください
    • history
  • その中から、lsコマンドを使用した行だけを表示してください
    • history |egrep 'ls|ll'
  • lsコマンドのヘルプを表示してください。
    • ls -help
  • 自分のアカウントのパスワードを変更してください。
    • passwd
  • 自分のsambaアカウントを追加してください。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant