2,547
yesterday 2,203
visitor 24,706,675
13

리눅스 vi 명령어

조회 수 183346 추천 수 0 2011.10.19 10:36:19
vi 명령어는 너무 많습니다. 개인적인 정리이니 명령어가 너무 적다고 토 달지 말아주세요^^
제 생각에 처음부터 알아둬야 할 명령어는 bold효과를 주었습니다.


커서 이동
h → 왼쪽 이동
j → 아래로 이동
k → 위로 이동
l → 오른쪽 이동

검색
/ → 아래 방향으로 문자열 검색
? → 위쪽 방향으로 문자열 검색
n → 검색된 문자열의 다음 문자열로 이동
N → 검색된 문자열의 이전 문자열로 이동

복사 & 붙여넣기
yy,Y → 행복사
yw → 커서위치부터 단어끝 복사
y0 → 커서위치부터 행처음 복사
y$ → 커서위치부터 행끝 복사
yG → 커서위치부터 파일끝 복사

:1,4 co 10 1~4행을 10행으로 복사
:1,4 m 10 1~4행을 10행으로 이동

[숫자]y  → 현재 줄부터 아래 방향으로 숫자의 줄 수 만큼 추가 복사 (ex. 1y, 2y, ...)
y[숫자]  → 현재 줄부터 위 방향으로 숫자의 줄 수 만큼 추가 복사 (ex. y1, y2, ...)

v  → 블록지정
y  → 블록복사



P  → 커서의 다음 위치에 붙여넣기
p  → 커서위치에 붙여넣기
복사 명령어는 라인복사, 단어복사 등 너무 많습니다. 사용의 편리성으로 만들어졌지만 처음부터 사용하기에는 너무 힘듭니다. 일단 yy와 y[숫자], 그리고 블록복사(v, y)만을 사용하도록 합니다. 붙여넣기 또한 p만 사용하여 현재 커서 위치에서만 붙여넣기를 합니다.

삭제
x  → 한문자씩 삭제(del)
X  → 한문자씩 삭제(back space)
dd  → 한줄 삭제
D  → 커서의 위치부터 행 끝까지 삭제
dw  → 커서의 위치부터 단어 끝까지 삭제
dj  → 커서행 + 1행 삭제
dk  → 커서행 -1행 삭제
:5, 10 d  → 5~10번째 행 삭제
삭제 명령어도 복사만큼 다양합니다. 처음은 x, dd만 사용하도록 합시다.

redo & undo
ctrl + r   → redo
u  → undo

많은 편집기에서 꽤 많이 사용하는 명령어 입니다. vi 역시 이 명령어는 많이 쓰게 되는 것 같습니다.
만약 당신이 천재가 아니라면요~

 

 

출처 : http://dhna.tistory.com/235


 

 

'헬로마켓'과 함께하는 스마트한 중고 아이템 거래

https://www.hellomarket.com


18
profile

vewrtysu

July 21, 2024
*.0.78.193

profile

Henry Ebon

July 30, 2024
*.73.203.131

profile

shibaswap

August 11, 2024
*.162.147.199

SushiSwap is a community-driven decentralized exchange (DEX) for traders and liquidity providers.
https://usasushiswap.com/
profile

Henry Ebonyd

August 13, 2024
*.0.78.203

profile

글쓴이

August 17, 2024
*.122.57.251

WalletConnect is a protocol that connects decentralized applications (dApps) with mobile wallets. To use it, download the WalletConnect app, which allows you to scan QR codes or deep link with supported dApps for seamless transactions and interactions.
Read More:- 
WalletConnect
Download Wallet Connect
WalletConnect
profile

coinbase login

August 28, 2024
*.122.57.250

Ledger Live offers a range of features to cater to diverse user needs, including staking, swapping, and portfolio analytics. Its commitment to security sets it apart, employing cutting-edge encryption and offline storage options to shield your assets from potential breaches.

profile

vopabod

September 04, 2024
*.190.83.204

Coin98 Wallet is a decentralized finance (DeFi) wallet that allows users to manage, trade, stake, and exchange cryptocurrencies across multiple blockchains. It's designed to serve as a gateway to various DeFi services, supporting a wide range of tokens and blockchain networks. Coin98 Wallet

The TronLink Wallet is a popular cryptocurrency wallet extension specifically designed for the Tron blockchain (TRX). It allows users to store, send, receive, and manage TRX and other tokens based on the Tron network, like TRC10 and TRC20 tokens. Tronlink Wallet Extension

profile

글쓴이santois

September 09, 2024
*.0.60.130

profile

peceb12921

September 13, 2024
*.190.87.252

The Infinity Wallet extension is a game-changer in the world of digital wallets. Designed for both beginners and experienced users, it offers unmatched security and user-friendly features. If you're searching for a seamless way to manage your cryptocurrencies, Infinity Wallet has you covered. Infinity Wallet Extension

In the fast-paced world of cryptocurrency, having a reliable and secure wallet extension is crucial. Blade Wallet Extension stands out as a top choice for both beginners and experienced users. With enhanced features, security, and ease of use, it is setting new standards in the crypto wallet industry. Blade Wallet Extension

profile

Desert safari

September 20, 2024
*.110.91.163

Desert safari Dubai offers an unforgettable adventure in the vast Arabian desert. Visitors can experience thrilling dune bashing in a 4x4 vehicle, sandboarding on golden dunes, and enjoy stunning sunset views.

profile

james willam

September 20, 2024
*.162.150.105

Phantom Wallet Extension is a secure and user-friendly crypto wallet for managing Solana-based assets. Easily send, receive, stake tokens, and access decentralized apps (dApps) directly from your browser. With built-in security features and seamless design, Phantom ensures fast transactions and a smooth DeFi experience for users of all levels. Phantom Wallet Extension | Phantom Wallet Extension

profile

Constanza

September 21, 2024
*.110.91.163

Experience an unforgettable evening desert safari in Dubai, starting with an exhilarating dune bashing session across the golden dunes. As the sun sets, enjoy camel rides, sandboarding, and a chance to capture breathtaking desert landscapes. The adventure continues at a traditional Bedouin camp, where you’ll savor a buffet of Arabian cuisine, sip on Arabic coffee, and unwind with shisha. Live entertainment, including belly dancing, Tanoura, and fire shows, adds to the magic of the evening, all under a starlit desert sky.
profile

jasan ronn

September 23, 2024
*.110.91.163

Dubai Desert Safari is a must-do adventure that offers a blend of thrill, culture, and natural beauty. It typically includes an exhilarating dune bashing experience in a 4x4 vehicle across the rolling sands of Dubai's vast desert, followed by activities like sandboarding, camel rides, and quad biking. The Morning Desert Safari provides a shorter, yet equally exciting experience. Start your day with an adrenaline-pumping dune bashing session, followed by activities like sandboarding and camel riding.
profile

votehi

September 26, 2024
*.9.84.139

Phantom Wallet is a user-friendly crypto wallet extension designed for the Solana blockchain. It enables easy storage, sending, receiving, and staking of SOL and Solana-based tokens. With a focus on security and seamless DeFi access, Phantom supports NFTs, DApps, and token swapping, offering a smooth and intuitive user experience. Phantom Wallet Extension | Phantom Wallet Extension

profile

Capital

October 02, 2024
*.190.82.49

Managing your finances in today’s digital world has never been easier, thanks to online banking platforms like Capital One. Whether you’re checking your balance, paying bills, or managing credit cards, the Capital One login portal offers a simple and secure way to do so. In this guide, we’ll walk you through the steps of logging in, along with some security tips to protect your account. Capital One Login | Capital One Login

profile

Cuevana

October 04, 2024
*.43.154.175

"비밀글 입니다."

:
profile

Veromisca

October 07, 2024
*.158.248.92

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜sort 조회 수
13 tar 압축하기 압축풀기 제리 2011-10-19 226945
12 리눅스 권한설정 chmod 제리 2011-10-19 126490
» 리눅스 vi 명령어 update [18] 제리 2011-10-19 183346
10 리눅스 기본 명령어 제리 2011-10-19 147568
9 fedora Linux에 Telnet 또는 SSH로 접속했을 때 한글이 깨지는 문제 해결 방법 제리 2011-10-20 88919
8 심볼릭 링크(ln) 만들기 및 확인/삭제 제리 2013-12-30 121213
7 톰켓 2개이상 구동 [2] 제리 2013-12-30 183447
6 리눅스 reboot 톰켓 자동실행 제리 2014-01-21 125530
5 리눅스 jdk(java) 설치및 적용 제리 2015-01-12 223749
4 리눅스 파일내용에서 단어 검색 제리 2015-08-18 137146
3 리눅스 파일, 폴더 오너 바꾸기 제리 2015-08-27 159451
2 CentOS7 SSH 포트 변경 제리 2019-07-26 75579
1 Centos7 firewall-cmd 설정방법 제리 2020-01-08 147375

Program Note 로그인 :)