0% found this document useful (0 votes)
3 views

Linux Directory File Commands Cheat Sheet

This document is a cheat sheet for using the Vi editor and basic directory and file commands in a Unix-like operating system. It includes commands for navigating directories, managing files, and editing files with the Vi and Nano editors. Key commands such as 'pwd', 'ls', 'cd', 'mkdir', 'rm', 'cp', and 'chmod' are summarized for quick reference.

Uploaded by

haruoyoshida0731
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)
3 views

Linux Directory File Commands Cheat Sheet

This document is a cheat sheet for using the Vi editor and basic directory and file commands in a Unix-like operating system. It includes commands for navigating directories, managing files, and editing files with the Vi and Nano editors. Key commands such as 'pwd', 'ls', 'cd', 'mkdir', 'rm', 'cp', and 'chmod' are summarized for quick reference.

Uploaded by

haruoyoshida0731
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/ 1

Vi Editor Cheat Sheet

Directory Commands

pwd - Show current working directory

ls - List files and directories

ls -l - List with detailed information

ls -a - List all including hidden files

cd dirname - Change directory to 'dirname'

cd .. - Move to parent directory

cd / - Move to root directory

mkdir dirname - Create new directory named 'dirname'

rmdir dirname - Remove empty directory 'dirname'

rm -r dirname - Remove directory 'dirname' and its contents

File Commands

touch filename - Create a new empty file named 'filename'

cat filename - Display contents of 'filename'

cp source dest - Copy file 'source' to 'dest'

mv source dest - Move or rename file from 'source' to 'dest'

rm filename - Delete file named 'filename'

nano filename - Open file in nano editor

vi filename - Open file in vi editor

less filename - View file contents one screen at a time

head filename - View first 10 lines of 'filename'

tail filename - View last 10 lines of 'filename'

chmod 755 file - Change permissions of 'file' (example: read/write/execute)

chown user file - Change owner of 'file' to 'user'

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy