4
6

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 3 years have passed since last update.

【Linux】Linux入門

Last updated at Posted at 2020-04-20

#####Linuxの勉強しました。
##【Linux】Linux入門
#####「順次進行」「繰り返し」「条件分岐」

##コメント

comment.sh
#!/bin/sh
echo"Hello world."#hello
echo"Hello morning."
#echo"Good morning."
echo "Good evening."
出力
Hello world.
Good morning.
Good evening.

##折り返し記述

me.sh
#!/bin/sh
echo "0123456789abcdef"
echo "0123\
4567\
89ab\
cdef"
出力
0123456789abcdef
0123
456789abcdef

##変数

variable.sh
#!/bin/sh
var1 ="test"
for i in 1 2 3;do
  echo ${var1}_${i}
done
出力
test_1
test_2
test_3

##繰り返し

for.sh
for i in 1 10 100; do
  echo $(expr 999 + $i)
done
出力
1000
1009
1099

##条件分岐

until.sh
#!/bin/sh
i=1
until [ "$i" -gt 5 ];do
  echo $i
  i=$(expr $i + 1)
done
出力
1
2
3
4
5

##環境構築
#####windowsでLinuxディストリビューションであるUbuntuと仮想化ソフトウェアであるVirtualBoxをインストールしました。参考文献は書籍で「Linux入門」という本だった気が…失念してしまいました。

##追記

ディストリビューションとはLinuxの種類のことです。オープンソースのため分岐していったようで、ボランティアが中心になって開発を進めていて、ここから派生してUbuntuが出来たらしい。Debian系というみたい。
【目的別】初心者におすすめのLinuxディストリビューション7選

4
6
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
4
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?