Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
2018-04-Ubuntu Linux基礎 / 2018-04 Ubuntu
Search
Cybozu
PRO
July 02, 2018
Programming
2
37k
2018-04-Ubuntu Linux基礎 / 2018-04 Ubuntu
Cybozu
PRO
July 02, 2018
Tweet
Share
More Decks by Cybozu
See All by Cybozu
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
6
39k
2024/11/25 ReDesigner Online Meetup 会社紹介
cybozuinsideout
PRO
0
330
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
9
48k
テクニカルライティング
cybozuinsideout
PRO
4
500
サイボウズのアジャイルクオリティ2024
cybozuinsideout
PRO
3
420
モブに早く慣れたい人のためのガイド2024
cybozuinsideout
PRO
3
560
モバイル
cybozuinsideout
PRO
3
290
ソフトウェアライセンス
cybozuinsideout
PRO
4
270
ソフトウェアテスト
cybozuinsideout
PRO
3
450
Other Decks in Programming
See All in Programming
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
390
最近のVS Codeで気になるニュース 2025/01
74th
1
210
ドメインイベント増えすぎ問題
h0r15h0
2
580
Simple組み合わせ村から大都会Railsにやってきた俺は / Coming to Rails from the Simple
moznion
3
2.9k
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
210
functionalなアプローチで動的要素を排除する
ryopeko
1
510
Alba: Why, How and What's So Interesting
okuramasafumi
0
220
QA環境で誰でも自由自在に現在時刻を操って検証できるようにした話
kalibora
1
140
ゼロからの、レトロゲームエンジンの作り方
tokujiros
3
1.1k
Внедряем бюджетирование, или Как сделать хорошо?
lamodatech
0
960
ErdMap: Thinking about a map for Rails applications
makicamel
1
770
Flatt Security XSS Challenge 解答・解説
flatt_security
0
770
Featured
See All Featured
Statistics for Hackers
jakevdp
797
220k
jQuery: Nuts, Bolts and Bling
dougneiner
63
7.6k
The Cost Of JavaScript in 2023
addyosmani
46
7.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
98
18k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Being A Developer After 40
akosma
89
590k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
120k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Transcript
1 0 2
=0 12 S 4 6 l l =
1 1 . 2 L4 6 l l lsb_release -a l 2
l
l
cd /usr/share/doc l /usr/share/doc pwd l cd
l ls l l ls -a, ls -F, ls -l
mkdir foo l cd foo touch bar l
l cd .. l
tree sudo apt install tree tree . l .
l .
rmdir foo l D l ' ' '
l D rm foo/bar l foo/bar rmdir foo l :
None
mkdir hoge touch hoge/piyo rm -r hoge
l hoge " l !" sudo rm -rf /
, l less more lv l q
l l b l ls -l /etc | less
less /etc/passwd l #! l %30 % /etc/shadow sudo
less /etc/shadow l %'2,"1+ l '2," &-)/*. ( less /etc/group l $ !
nano l sudo apt install nano l S CV
l E vim emacs l E l C ( + + E + , )+ )
man ls l man nano
id -a l D I l
S l S O S l sudo less
/etc/shadow 0 l sudo id -a 0
ls -l /etc/shadow l -rw-r----- 1 root shadow
978 Feb 6 14:30 /etc/shadow cd; cp /etc/shadow ./ l shadow l ' / / / l P : P -rw-r----- root shadow 978
!# 3- )& "3- )& ./%
'0 l ,5*" 1 2+ !# $.(4 -|rw-|r--|--- ",5* ",5" 1
sudo cp /etc/shadow ./ l root
shadow l cp & # !')root & # !$ %" ls –l ./shadow l -rw-r----- 1 root root 978 Jun 29 17:46 ./shadow sudo chmod 664 ./shadow l 664 l 1=x, 2=w, 4=r *(6=2+4=rw ls –l ./shadow l -rw-rw-r-- 1 root root 978 Jun 29 17:46 ./shadow
less ./shadow l
touch ./shadow l touch: cannot touch 'shadow': Permission denied l ! " sudo chown kota_uchida ./shadow l # kota_uchida ! ls –l ./shadow l -rw-rw-r-- 1 kota_uchida root 978 Jun 29 17:46 ./shadow touch ./shadow l
I 0 -
man 5 interfaces l D man man sudo nano /etc/network/interfaces
auto eth0 iface eth0 inet static address I 12 5 netmask 255.255.240.0 gateway dns-nameservers
sudo reboot l reboot ifdown ifup sudo ifdown
eth0; sudo ifup eth0 ssh l !
OS d OS d ps ux
l OS sudo ps auxwwe | less l OS l e kill PID l OS OS S l a OS l kill -9 -1
$ cat > sleep_echo.sh
#!/bin/sh sleep $1 echo hello $ chmod +x sleep_echo.sh
C 0
l ./sleep_echo.sh 10 l C l / l fg/bg C Z l jobs 1 + ./sleep_echo.sh 10 & l +
l 0 P true 0false P
S l true l echo $? l false l echo $? l set -e l false $? "
None
l a e l ( () d3
man 3 daemon l sudo apt install manpages-dev l man 3 daemon
0 - cn b : : Wa U 0
- h ld i m b je l / 6 -. 16 . - /.- 0 1 2 . # -. .2 6 . -. -. .2 6 . -. / 2 0 - 20 :
l man bash l sudo apt install
bash-doc; info bash ) ( l chsh l ) ,