1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ubuntuをつかってみよう(vimを入れるまで)

1
Last updated at Posted at 2018-04-04

コマンドについて

ubuntuを操作するにはコマンドをよく使う(CUIって画面で操作する)
ubuntuでのターミナルの出し方はctrl+alt+tでだせる

事前知識

  • ディレクトリ
    windowsで言うフォルダのこと
  • ホームディレクトリ
    自分がメインで使うところ"~/"と表示される
  • カレントディレクトリ
    今いるディレクトリ

基本的なコマンド一覧

# 今いるディレクトリの中のファイル及びディレクトリを表示  
$ ls

# 隠しファイル及び隠しディレクトリを含めて表示
$ ls -a

# 別のディレクトリに移動する
$ cd [ディレクトリ名]

# 新しいディレクトリを作る
$ mkdir [ディレクトリ名]

# ファイルを削除する
$ rm [ファイル名]  

# ディレクトリを削除する
$ rm -rf [ファイル名]

# ファイル(ディレクトリ)の名前を変える
$ mv ./[前の名前] ./[次の名前]

# ファイル(ディレクトリ)を移動させる
$ mv ./[ファイル名] [移動先のディレクトリ]/[ファイル名]

# ファイル(ディレクトリ)をコピーさせる
$ cp ./[ファイル名] [移動先のディレクトリ]/[ファイル名]

vimを使ってみよう

ubuntuに元から入ってるvimは旧バージョンなのでまずはアップデートを行います

# vim8.0用レポジトリ追加
$ sudo add-apt-repository ppa:jonathonf/vim
# レポジトリの読み込み
$ sudo apt update
$ sudo apt install vim

これでvimは完成だよいっぱい文字打とうね

こんな残念なエディタの使い方がわかんないだって?
しょうがないなぁ次回はvimのカスタマイズについて!!

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?