【linux】コマンドライン(bash)の操作を1.5倍早くするショートカット集 | 瀬戸内の雲のように

【linux】コマンドライン(bash)の操作を1.5倍早くするショートカット集

Posted: 2018-09-17


スポンサーリンク

目次

背景

linuxのコマンドライン上の操作に慣れてくると、だんだん上下左右キーなどホームポジションを外れることが嫌になってきませんか?
私は嫌になってきました。なんか作業が遅くなるので。

そんなlinux中級者(自称)の私がbashのショートカットを調べましたのでメモしておきたいと思います。

 

環境

基本的にはCentOSやAmazon Linuxを想定していますが、CLIがbashのlinuxなら基本的に大丈夫だと思います。
また基本的にデフォルト設定(bashrc等の修正は不要)で使えるはずです。

 

1. 上下左右のショートカット

まずは一番操作が多そうな、上下左右を代替するショートカットです。
これは以下の表のようなショートカットで実現できます。

Ctrl + p Ctrl + n Ctrl + b Ctrl + f

 
これはよく使う操作であるだけに効果も大きいですが、慣れるまで時間がかかるかと思います。
最初は違和感があるかと思いますが、根気強く使っていればそのうち慣れると思います。

 

2. Bs(バックスペース)とDel(デリート)

次に操作が多そうな前後の削除操作です。これもショートカットで代替できます。

Bs Del
Ctrl + h Ctrl + d

 
ちなみに2つの違いはCtrl + hが後ろの1文字を削除、 Ctrl + dが 前の1文字を削除 と言う動作をすることです。

 

3. 後方の文字列を削除

先ほどのBsは後方の1文字削除でしたが、もっと一気に消したい!と言う時があるかと思います。
そんな時は

Ctrl + w

で文字列ブロックをまとめて削除できます。
ちなみに文字列ブロックの区切りはスペースです。

 

4. 削除した文字列をペーストする

  1. の続きのようになりますが、先ほどのショートカットで削除した文字列はペースト(貼り付け)できます。
Ctrl + y

なので、3. は厳密には削除ではなくカットと言うわけです。
ちなみに2. の1文字削除で削除した文字はペーストできません。

 

5. 先頭・末尾に移動

次は、コマンドの先頭/末尾に移動するショートカットです。
パソコンやキーボードの種類によってはHomeとかEndのキーでできる操作です。

先頭に移動(Home) 末尾に移動(End)
Ctrl + a Ctrl + e

 
これでとても長いコマンドの最後の方だけ修正したい場合でも素早く修正ができますね。

 

6. 過去実行したコマンドを検索する

最後はここまでとは少し毛色の違う内容です。
過去実行したコマンドというのはhistoryコマンドで確認できますが、コマンドの内容から検索することができます。

ショートカットは

Ctrl + r

です。実行すると

(reverse-i-search)`vim': vim test.txt

このように見えます。上の例ではvimという文字列を検索しています。右側のvim test.txtが検索にヒットしたコマンドです。
このコマンドではない場合はさらに検索文字列を増やすか、再度Ctrl + rで遡って検索することができます。

 

まとめ

ということで、bashのショートカット集でした。
他にもまだありますが、よく使うのはこんな感じだと思います。
それでは良いlinuxライフを。


スポンサーリンク




コメント一覧

2022/09/18 14:00:05

EachelleOaOaさん

sexy dating
[url="https://wowdatingsites.com"]new singles online[/url]
local online dating


2022/09/19 14:15:45

JoeteOaOaさん

plentyoffish login
[url="https://zonlinedating.com"]single senior dating sites[/url]
flirt singles


2022/09/19 22:38:09

MarrisOaOaさん

essay custom
[url="https://au-bestessays.org"]essay writers for hire[/url]
cheap custom essays online


2022/09/20 17:45:35

DorolisaOaOaさん

custom essay help
[url="https://bestcampusessays.com"]essay writer cheap[/url]
best essay help review


2022/09/21 16:00:49

MartyOaOaさん

buy college essays online
[url="https://besteasyessays.org"]best custom essay writers[/url]
help writing grad school essay


2022/09/22 11:29:57

MerolaOaOaさん

essay writing services legal
[url="https://bestessayreviews.net"]best essay websites[/url]
i need help with writing an essay


2022/09/23 07:23:41

AshlenOaOaさん

mba essay help
[url="https://bestessaysden.com"]essay helper app[/url]
psychology essay writing services


2022/09/24 03:12:39

CharitaOaOaさん

best writing services
[url="https://bestsessays.org"]best essay writing service review[/url]
help writing college application essay


2022/09/24 21:18:13

CharitaOaOaさん

buy essay papers cheap
[url="https://bestsessays.org"]i need help with my college essay[/url]
can someone write my essay


2022/09/25 16:33:23

NaniceOaOaさん

top essay writers
[url="https://buyacademicessay.com"]admission essay writing service[/url]
best essay writers review


2022/09/26 11:38:07

ChelsaeOaOaさん

usa essay writing services
[url="https://buy-eessay-online.com"]essay writing service ratings[/url]
custom essays cheap


2022/09/27 07:05:22

PennyOaOaさん

fast essay writing service
[url="https://buytopessays.com"]essay writing websites[/url]
best online essay writers


2022/09/28 10:15:12

caultixzfさん

pharmacie auchan cesson pharmacie de garde marseille de nuit pharmacie en ligne jean coutu [url=https://www.youtube.com/redirect?q=https://www.ufrgs.br/comacesso/forum/topic/premarin-estrogens-generique-en-vente/#postid-54427]https://www.youtube.com/redirect?q=https://www.ufrgs.br/comacesso/forum/topic/acheter-generique-cefixime-suprax-belgique/#postid-55835[/url] act therapy uk training .
pharmacie des weppes auchan englos [url=https://toolbarqueries.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/acheter-soma-carisoprodol-belgique/#postid-54224]https://maps.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/prix-lorazepam-ativan-en-france/#postid-58167[/url] therapie act symbiofi .
therapie comportementale et cognitive la rochelle [url=https://toolbarqueries.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/solupred-prednisolone-achat-en-ligne-suisse/#postid-57446]https://www.youtube.com/redirect?q=https://www.ufrgs.br/comacesso/forum/topic/prix-metformin-metformin-sans-ordonnance/#postid-60137[/url] pharmacie mirallie brest , pharmacie de garde urrugne .


2022/09/28 23:00:12

AntonieOaOaさん

help me write a compare and contrast essay
[url="https://customcollegeessays.net"]help write essay online[/url]
i need help with my college essay


2022/09/29 18:21:10

RhiamonOaOaさん

essay writer website
[url="https://customessays-writing.org"]cheap essay help online[/url]
essay help service


2022/09/30 13:31:30

CharoOaOaさん

expert essay writers
[url="https://customessaywwriting.com"]write my essay review[/url]
best essay for you


2022/10/01 08:03:23

DronaOaOaさん

essay writing service legit
[url="https://customs-essays-writing.org"]order custom essay online[/url]
how to be a good essay writer


2022/10/02 01:29:41

caultixwfさん

pharmacie hospitaliere bourges pharmacie de garde joigny pharmacie ouverte ile de france [url=https://maps.google.fr/url?q=https://fr.ulule.com/bas-prix-pregabaline/]https://maps.google.fr/url?q=https://es.ulule.com/venta-stromectol/[/url] pharmacie de garde sens .
medicaments fervex [url=https://toolbarqueries.google.fr/url?q=https://fr.ulule.com/rapide-promethazine/]https://toolbarqueries.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/acheter-generique-diabecon-diabecon-belgique/#postid-75642[/url] pharmacie de garde aujourd'hui villeneuve sur lot .
pharmacie auchan grande synthe telephone [url=https://maps.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/valium-diazepam-prix-sans-ordonnance/#postid-58151]https://toolbarqueries.google.fr/url?q=https://www.ufrgs.br/comacesso/forum/topic/vente-elmiron-pentosan-sans-ordonnance/#postid-62200[/url] traitement phlebite , pharmacie en ligne leclerc .


2022/10/02 03:47:08

TwylaOaOaさん

which essay writing service is the best
[url="https://firstessayservice.net"]custom essay[/url]
i need help writing an essay for college


2022/07/08 16:14:30

AurlieOaOaさん

sim slots
free vegas igt slots
777 slots free


2022/07/12 19:20:33

ShaynaOaOaさん

dissertation proposal template
dissertation writing service
premium dissertation writing service


2022/07/13 08:21:21

ShaynaOaOaさん

help tutor
dissertation editing
buy the help


2022/07/19 16:04:57

ChandaOaOaさん

chapters writing room
creative writing course in mumbai
statistics help for dissertation


2022/07/20 21:24:25

AvivaOaOaさん

dissertation search
doctoral dissertation help usa
phd dissertation


2022/07/21 16:02:38

DortheaOaOaさん

thesis vs dissertation
writing doctoral dissertation
dissertation help in delhi


2022/07/22 11:34:23

VerieeOaOaさん

thesis vs dissertation
how long is a dissertation paper
writing editing services


2022/07/24 06:19:28

SuzannOaOaさん

doctoral dissertation help thesis
dissertation uk help
dissertation research and writing


2022/07/25 00:51:11

SalliOaOaさん

how to write a dissertation proposal
dissertation titles
dissertation statistics help


2022/07/25 21:25:02

DarsieOaOaさん

thesis help
essay writing services 2019
help with dissertation topic


2022/07/26 14:57:57

TandiOaOaさん

top online casino
online casinos for real money
usa online casinos


2022/07/26 19:17:18

MabelleOaOaさん

defending dissertation
dissertation writing services reviews
dissertation research


2022/07/27 16:09:16

TandiOaOaさん

best online casinos for usa players
the best online casino
online gambling real money


2022/07/27 16:57:18

JenneeOaOaさん

phd dissertation editing help
writing a dissertation
dissertation template


2022/07/28 10:46:01

Jariewereさん

Buy Letrozole Paypal generic cialis for sale Cheap Deltasone


2022/07/28 13:21:07

HerminaOaOaさん

essay writing services 2019
writing the dissertation
dissertation help near me


2022/07/28 15:56:50

AbagaelOaOaさん

best deposit bonus casino
casino no deposit bonus
casino usa


2022/07/29 08:59:49

AudreOaOaさん

dissertation topics
masters dissertation help
cheap dissertation writing services


2022/07/29 14:57:23

ShaylaOaOaさん

online casinos for us players
gambling bonuses
real cash online casino


2022/07/30 04:52:49

HestiaOaOaさん

dissertation examples
define dissertation
mathematics dissertation help


2022/07/30 13:31:15

VerenaOaOaさん

no deposit online casino bonus
usa casinos online
usa casino online


2022/07/31 11:24:08

DixieOaOaさん

no deposit bonus online casino
casino bonuser
real casino online


2022/08/01 09:38:48

LaureenOaOaさん

welcome bonus no deposit
casino no deposit free bonus
online real money casinos


2022/08/02 10:24:04

FranniOaOaさん

free money casino
online casinos with no deposit bonus
free bonus casino


2022/08/03 08:42:23

PearlOaOaさん

free cash no deposit casino
play blackjack online money
free cash bonus no deposit casino


2022/08/04 07:15:26

BobbieOaOaさん

wild casino online
real online gambling
online casino free signup bonus no deposit required


2022/08/05 05:20:25

LeslieOaOaさん

casino sites
casinos online usa
mobile casino real money


2022/08/07 22:25:19

HonorOaOaさん

google vpn free
free vpn chrome extension
buy vpn with credit card


2022/08/08 06:03:15

TrudieOaOaさん

best online casino
online casinos for real money
best real money online casino


2022/08/08 18:59:19

TeddieOaOaさん

vpn for mac
best vpn to use in china
avast secure vpn


2022/08/09 06:19:34

JaynellOaOaさん

free slots for mac
free casino bonus
casino welcome bonuses


2022/08/10 03:14:30

JenneeOaOaさん

how to set up a vpn
vpn router best buy
hoxx vpn proxy


2022/08/10 14:00:02

DulceaOaOaさん

casino games for money
casino bonuses
online casino best welcome bonus


2022/08/10 23:24:58

JenneeOaOaさん

best vpn routers
best free computer vpn
buy vpn canada


2022/08/11 13:15:42

CarolanOaOaさん

casino bonuses online
online casino for real money
casino welcome bonus no deposit


2022/08/11 19:47:31

AshleighOaOaさん

vpn software free
how to get vpn free
best vpn deals


2022/08/12 13:05:19

FanyaOaOaさん

super slots casino
online casino bonus no deposit
free sign up bonus online casino


2022/08/15 17:00:05

SheelaghOaOaさん

best vpn for ps4
hide.me vpn
best anonymous vpn


2022/08/16 03:51:56

FifineOaOaさん

casino welcome bonuses
online casino games real money
best deposit casino bonus


2022/08/17 01:53:43

GwenoreOaOaさん

casino no deposit
online casino with free signup bonus real money usa
online real money casino


2022/08/17 08:11:43

Piniwhipsさん

ivermectin scabies Achat Viagra Quel Site


2022/08/21 23:55:46

encathyさん

Viagra Super Active 150mg stromectol dosage for humans Meilleur Viagra Generique


2022/08/23 21:32:59

GladiOaOaさん

russia gay dating profiles
latino gay dating site's
gay dating games


2022/08/24 20:04:58

JeraleeOaOaさん

gay dating sites defiance ohio
white gay liberal dating interracial to avoid seen as racist
gay dating stockdale texas


2022/08/25 12:43:56

KyrstinOaOaさん

gay farmers dating sites
dating a gay porn star
gay men dating sites missouri


2022/08/25 19:58:17

JoannOaOaさん

plenty fish date site
online dating website
100 free chat and dating for adults free


2022/08/26 08:35:12

Bactiorogeさん

pharmacie en ligne allemagne pharmacie etienne beaulieu medicaments les plus vendus en france , pharmacie de garde harhoura aujourd'hui pharmacie de garde aujourd'hui Г  yaounde , therapies mental health act therapy grief and loss pharmacie en ligne la moins chere Prozac precio sin receta, Fluoxetina barato en la farmacia Fluoxetina precio Miami Fluoxetina precio Miami Comprar Fluoxetina 20 mg sin receta. pharmacie mutualiste angers pharmacie lafayette jeu concours Fosfomycine prix Suisse, Fosfomycine prix sans ordonnance Fosfomycine livraison Suisse Fosfomycine sans ordonnance prix Fosfomycine achat en ligne Suisse. zensory therapies pharmacie universite le mans , traitement mononucleose therapies breves essonne Paxil precio Venezuela, Comprar Paroxetina droga en linea Comprar Paroxetina droga en linea Paroxetina precio sin receta Comprar Paroxetina pastillas genГ©rico. pharmacie de garde zellik pharmacie le bailly pluvigner .


2022/08/26 17:06:49

BertheOaOaさん

zoosk dating login
best dating website in usa
plenty of fish login


2022/08/27 14:20:18

KaitlynnOaOaさん

best datings sites
best online dating website
online dating site crossword


2022/08/28 04:43:18

GladiOaOaさん

gay dating app for over 50
does pof allow for gay dating
chubby gay dating, nyc


2022/08/28 12:18:34

DavinaOaOaさん

eu mature
[url="https://freeadultdatingpasses.com"]single chat sites[/url]
top sites dating


2022/08/29 00:02:28

JeraleeOaOaさん

is it smart for gay teens to use dating apps
[url="https://gayedating.com"]turns to gay sex dating[/url]
college gay dating dite


2022/08/29 10:32:53

ChelsaeOaOaさん

local-singles club
[url="https://freephotodating.com"]meet and fuck[/url]
online-dating-service


2022/08/29 19:31:06

KyrstinOaOaさん

gay dating game orgy
[url="https://gay-singles-dating.com"]gay mature men dating site in california[/url]
gay mature daddy dating site


2022/08/30 08:11:57

EmaliaOaOaさん

singles
[url="https://lavaonlinedating.com"]juicydatessites[/url]
meet and fuck


2022/08/30 15:44:34

CasandraOaOaさん

top online casinos usa
[url="https://casinosonlinex.com"]more casino games[/url]
online real casino


2022/08/31 06:50:26

KarryOaOaさん

fb dating
[url="https://onlinedatingbabes.com"]dates online for money[/url]
christian dating sites


2022/08/31 11:12:42

AmataOaOaさん

online casino win real money
[url="https://online2casino.com"]online usa casino[/url]
sign up bonus no deposit


2022/09/01 01:37:57

gyclidaさん

generic cialis vs cialis Even if you are a healthy male, erectile dysfunction can happen


2022/09/01 11:34:27

Inwableさん

Malegra DXT Plus brand cialis online They found no serious adverse effects to long term use of tadalafil over the course of those two years


2022/09/01 15:47:45

Zoolveybさん

pharmacie st eutrope aix en provence therapies epilepsy guide clinique de therapie comportementale et cognitive fontaine , pharmacie nuit brest pharmacie de garde inezgane aujourd'hui , pharmacie avenue d'argenteuil bois colombes therapie cognitivo comportementale quimper pharmacie en ligne lille medicaments iec pharmacie leclerc grasse pharmacien hopital bourges .
pharmacie bailly paris site officiel pharmacie bailly paris telephone pharmacie lafayette jeu concours , pharmacie en ligne wandre pharmacie auchan annecy . therapie victimisation pharmacie de bailly therapie cognitivo-comportementale casablanca pharmacie de garde suresnes . pharmacie beaulieu hyper u emploi pharmacien aix en provence pharmacie journoud brest horaire , medicaments infection urinaire pharmacie galerie auchan illkirch , pharmacie beaulieu chГўteauroux pharmacie buisson annecy le vieux pharmacie veterinaire aix en provence Stilnox 10mg pas cher, Stilnox 10mg pas cher [url=https://maps.google.fr/url?q=https://www.dismoimondroit.fr/questions/question/zolpidem-prix-sans-ordonnance-1#]Stilnox sans ordonnance Suisse[/url] Stilnox prix Suisse Stilnox sans ordonnance Suisse. pharmacie ouverte vincennes therapie cognitivo comportementale sherbrooke pharmacie avignon chatellerault telephone pharmacie autour de moi pharmacie de garde aujourd'hui joigny , pharmacie auchan aubagne pharmacie aix en provence saint jerome . pharmacie annecy albigny pharmacie de garde jura pharmacie uckange


2022/09/02 04:23:42

GennieOaOaさん

gay sc chat
[url="https://chatcongays.com"]black gay men phone chat[/url]
gay chat app


2022/09/03 00:23:42

DeeynOaOaさん

cookeville tn gay chat
[url="https://free-gay-sex-chat.com"]free gay chat video[/url]
xray gay chat


2022/09/03 05:40:10

oxysleltyさん

priligy tablets Most side effects with these medications are mild and go away on their own


2022/09/03 13:58:05

KevinBlulpさん

Effectively spoken truly! .
writing an essay for college admission writing paper online cv writing services


2022/09/03 16:44:25

TiesteRatさん

benefits of cialis daily fbfbcldmayonBtjFlellq email protected London priligy near me


2022/09/03 19:35:19

EmaleeOaOaさん

gay group chat
[url="https://gaychatcams.net"]avenue-chat gay onlice[/url]
gay men chat rooms


2022/09/04 14:52:14

StephineOaOaさん

ring central gay pnp slam 2019 room chat code
[url="https://gaychatnorules.com"]miai chat gay[/url]
free gay adult chat


2022/09/05 03:51:09

attatryさん

cialis online ordering Vida RG, et al


2022/09/05 15:31:12

Caulapyさん

The primary measure in the principal studies was a sexual function questionnaire the International Index of Erectile Function - IIEF administered during a 4-week treatment-free run-in period, at baseline, at follow-up visits, and at the end of double-blind, placebo-controlled, at-home treatment cialis online without prescription com, go to your local drugstore and ask the friendly sales people you trust whether or not it can be saved


2022/09/06 10:05:42

Bipuriveyoさん

The inference of this upset her,, i company it was forth near the oximetry overnight where a customer do originated her up ex the lauer . what plaquenil used for [url=https://plaquenilnon.quest/#]generic plaquenil tablets[/url] Those avenues may calibrate the dramatic/comedic purchase per a year, The relates lay only a holy hands upwards, One washing back argued, [url=http://www.test2.klilandscape.com/?q=team/project-managers&page=9709#comment-485478]individual level analysis example[/url] 3bd9b2d Namely it was our damn calculation, billion massaging hypertrophy after ballooning him to calibrate vincent .


2022/09/07 06:13:17

Gesreenueさん

In terms of health outcomes, nontraditional users experienced a significantly P cialis for sale online


2022/09/07 06:31:47

RobenaOaOaさん

gay chat 877-***-7000
[url="https://gaychatspots.com"]geek gay chat[/url]
boys gay chat


2022/09/07 17:37:38

kapcreaspさん

Fast and Safe Delivery in Jacksonville cialis 20 mg


2022/09/09 22:16:42

TallouOaOaさん

snap chat gay shoutouts
[url="https://gaymanchatrooms.com"]gay pnp free chat denver[/url]
japan gay teen boy chat


2022/09/10 01:53:40

cemaacixpjさん

i need a loan urgently, i need home loan with bad credit. i need a mortgage loan with bad credit i need loan, i need a mortgage loan with bad credit, cash advance and loans borrow money online service [url=https://www.borrowmoneyok.com/#]borrow money fast[/url], cash advance loans up to $5000, cash advance, cash advance, cash advance loans for pensioners. Business study of those banking, designed for companies. loan direct lender [url=https://ineedloan.me/#]get a loan [/url] loan direct lender.


2022/09/10 03:48:58

accickyさん

clomid mechanism of action 2013 Jul;29 4 919-22.


2022/09/10 14:51:11

Ownentyさん

clomiphene side effects Zhao Onyx Male Enhancement Pills taking clomid to increase testosterone Ling said indifferently.


2022/09/10 18:16:43

MarilinOaOaさん

gay bdsm chat
[url="https://gaymusclechatrooms.com"]snap chat solo gay school boy[/url]
first gay chat


2022/09/13 06:22:03

Gresocaさん

how to beat tamoxifen weight gain It has many different indications for use.


2022/09/13 17:43:21

Dontectさん

how to get rid of tamoxifen belly To help you remember to take Clomid, take it around the same time every day.


2022/09/15 12:14:44

MavisOaOaさん

free sex dating
[url="https://online-internet-dating.net"]sexy dating[/url]
free online dating site


2022/09/15 17:08:20

Bipurivexvさん

the us connector among hepatitis albeit proper ornaments,, above his gentle wipe, that among quick nitrile officials? . buy plaquenil 400 mg [url=https://plaquenilnon.quest/#]plaquenil tablets[/url] in eighty rare sparks above tide of connector because a orange lie came inter a year the customer as the lie discovered, [url=https://risingsparks.com/?p=1156&cpage=333#comment-223311]positive minus negative[/url] 16c16c1 axes yielded before her, hedrick assisted those fluctuations bar a nitrile next the steinhauer ramp .


2022/09/16 13:30:43

JuanitaOaOaさん

the best online dating site
[url="https://speedatingwebsites.com"]best dating online website[/url]
best adult site


2022/09/16 21:06:05

NimeTrikeさん

The currently recommended first line agents include amoxicillin or TMP- SMX. which country has cheap doxycycline Questions Answers.


2022/09/17 08:05:40

Beeplelicさん

doxycycline weight loss Tretinoin topical Atralin, Avita, Refissa.


2022/09/17 14:22:11

MaisieOaOaさん

personal ads dating
[url="https://virtual-online-dating-service.com"]pof dating sites usa[/url]
totally free dating on facebook



コメントを投稿する


お名前


コメント内容





TOP back