0% found this document useful (0 votes)
5 views2 pages

Linux VIM CheatSheet

This document is a cheat sheet for basic and advanced Linux commands as well as VIM editor commands. It includes commands for file management, process monitoring, and text editing. Each command is accompanied by a brief description of its function.

Uploaded by

Sumit Sutar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Linux VIM CheatSheet

This document is a cheat sheet for basic and advanced Linux commands as well as VIM editor commands. It includes commands for file management, process monitoring, and text editing. Each command is accompanied by a brief description of its function.

Uploaded by

Sumit Sutar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Linux and VIM Commands Cheat Sheet

Basic Linux Commands

ls List directory contents

cd [dir] Change directory to [dir]

pwd Print current directory path

mkdir [dir] Create a new directory [dir]

rm [file/dir] Remove file or directory

cp [src] [dest] Copy file/directory

mv [src] [dest] Move/rename file/directory

cat [file] Display file content

echo [text] Print text to terminal

man [command] Display manual for command

Advanced Linux Commands

grep [pattern] [file] Search for a pattern in a file

find [dir] -name [name] Find files in a directory

chmod [permissions] [file] Change file permissions

chown [user:group] [file] Change file ownership

ps aux Show running processes

kill [PID] Terminate a process by PID

df -h Display disk space usage

top Monitor system processes in real-time

tar -czf [archive.tar.gz] [dir] Compress a directory

scp [src] [user@host:dest] Securely copy files to/from remote system

VIM Editor Commands

i Insert mode

Esc Exit insert mode

:w Save file

:q Quit VIM

:wq Save and quit VIM

:q! Quit without saving

/[text] Search for text in file


n Repeat last search

dd Delete current line

yy Copy current line

p Paste copied line

:set nu Show line numbers

:set nonu Hide line numbers

u Undo last change

Ctrl + r Redo last undone change

:%s/[old]/[new]/g Find and replace all occurrences in file

You might also like