[Linux] Introduction to Linux

I studied Linux.

[Linux] Introduction to Linux

"Sequential progress" "Repeat" "Conditional branch"

comment

comment.sh


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

output


Hello world.
Good morning.
Good evening.

Wrap description

me.sh


#!/bin/sh
echo "0123456789abcdef"
echo "0123\
4567\
89ab\
cdef"

output


0123456789abcdef
0123
456789abcdef

variable

variable.sh


#!/bin/sh
var1 ="test"
for i in 1 2 3;do
  echo ${var1}_${i}
done

output


test_1
test_2
test_3

repetition

for.sh


for i in 1 10 100; do
  echo $(expr 999 + $i)
done

output


1000
1009
1099

Conditional branch

until.sh


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

output


1
2
3
4
5

Environment

For windows, the Linux distribution Ubuntu and the virtualization software VirtualBox ) Has been installed. I felt that the reference was a book called "Introduction to Linux" ... I forgot.

Postscript

A distribution is a type of Linux. It seems that it diverged because it is open source, and it seems that volunteers are playing a central role in the development, and ** Ubuntu ** was created by deriving from this. It seems to be ** Debian ** series. [By purpose] 7 recommended Linux distributions for beginners

Recommended Posts

[Linux] Introduction to Linux
A super introduction to Linux
Introduction to MQTT (Introduction)
Introduction to Linux Commands ~ LS-DYNA Edition ~
Introduction to Scrapy (1)
Introduction to Supervisor
Introduction to Tkinter 1: Introduction
Introduction to PyQt
Introduction to Scrapy (2)
Introduction to Scrapy (4)
Introduction to discord.py (2)
Introduction to discord.py
Introduction to Lightning pytorch
Introduce serverspec to Linux
Introduction to Web Scraping
Introduction to Nonparametric Bayes
Introduction to EV3 / MicroPython
Introduction to Python language
Linux commands to remember
Introduction to TensorFlow-Image Recognition
Introduction to OpenCV (python)-(2)
Introduction to PyQt4 Part 1
Introduction to Dependency Injection
Introduction to Private Chainer
Introduction to machine learning
AOJ Introduction to Programming Topic # 1, Topic # 2, Topic # 3, Topic # 4
Introduction to electronic paper modules
Introduction to dictionary lookup algorithm
Introduction to Monte Carlo Method
[Learning memorandum] Introduction to vim
Introduction to PyTorch (1) Automatic differentiation
opencv-python Introduction to image processing
Introduction to Python Django (2) Win
Introduction to Cython Writing [Notes]
An introduction to private TensorFlow
Kubernetes Scheduler Introduction to Homebrew
An introduction to machine learning
[Introduction to cx_Oracle] Overview of cx_Oracle
AOJ Introduction to Programming Topic # 7, Topic # 8
[Introduction to pytorch-lightning] First Lit ♬
Introduction to Anomaly Detection 1 Basics
Introduction to RDB with sqlalchemy Ⅰ
[Introduction to Systre] Fibonacci Retracement ♬
Introduction to Nonlinear Optimization (I)
[Linux] welcome to emergency mode!
Introduction to serial communication [Python]
AOJ Introduction to Programming Topic # 5, Topic # 6
Linux
I tried to reintroduce Linux
Linux on Windows -1-: debian introduction
Introduction to Deep Learning ~ Learning Rules ~
[Introduction to Python] <list> [edit: 2020/02/22]
Introduction to Python (Python version APG4b)
An introduction to Python Programming
[Introduction to cx_Oracle] (8th) cx_Oracle 8.0 release
Introduction to discord.py (3) Using voice
An introduction to Bayesian optimization
Deep Reinforcement Learning 1 Introduction to Reinforcement Learning
Super introduction to machine learning
Introduction to Ansible Part ③'Inventory'
Series: Introduction to cx_Oracle Contents