Unix VI Editor Cheat Sheet

If you need a help on Unix command, what you need is Unix VI editor cheat sheet because it contains information that will help you to know what you must do.

Best Unix Cheat Sheets

unix vi editor cheat sheet

computer-1Aside from cheat sheet tips, there are many information that you should know. This page will help you in knowing some things about unix vi editor that is why you need to read it carefully al remember all the codes that will be given.

Help of Unix command:

man {command} You need to type man rm in reading manual for rm command

what is {command} Give a short explanation of the command

List of directory:

ls {path_1} {path_2} List both {path_1} and {path_2}.

ls {path} It is okay to combine the attributes, eg ls -laF gets a long listing of all files with types

ls {path} | more Display listing one screen at a time

ls -l {path} Long listing, with the date, size as well as permissions

ls -F {path} Display the type of everyfile. “/” = directory, “*” = executable

ls -R {path} Recursive listing, with all the subdirs

ls -a {path} Display all files which include important .dot files that do not otherwise show

Try to check git cheatsheet to know more!

Cheat Sheet Template: DOS and the Unix Commands

Action

DOS

Unix

Change directory

Cd

Cd

change file protection

Attrib

chmod

compare files

Comp

diff

copy file

Copy

cp

delete file

Del

rm

delete directory

Rd

rmdir

directory list

Dir

Ls

Edit a file

Edit

Pico

Environment

Set

printenv

Find string in file

Find

Grep

Help

Help

man

Make directory

Md

mkdir

Move file

Move

Mv

Rename file

Ren

mv

Show date and the time

Date, time

date

Show disk space

chkdsk

df

Show file

type

cat

Show file by screens

Type filename/ more

more

Sort data

sort

sort

unix vi editor Cheat Sheet Template: Print With Unix

Aside from knowing how to do a cheat, it is always important to know about template because it will also guide you.

To Do This

Type This on System V UNIX

Type This on Linux or BSD UNIX

Print file

lp textfile

lpr textfile

Print file on a namedprinter

lp -dprinter textfile

lpr -P printer textfile

Cancel a print job

cancel requestid

lprm jobnumber

Check the printer queue

lpstat -a all

lpq -a

Cheat sheet tips: Changing Directory, Making new and Removing Directory

Changing directory

cd {dirname}

There should be a space between.

cd ~

Go back to the home directory and it is useful if you are lost.

cd ..

Go back to the one directory.

Making new directory

mkdir {dirname}

Removing directory

rmdir {dirname}

Only works if {dirname} is empty

rm -r {dirname}

Remove all files as well as subdirs

Printing working directory

Pwd

Show where you’re as full path. Useful if you are lost or exploring.

Copy file or directory

cp {file1} {file2}

cp -r {dir1} {dir2}

Recursive, copying directory and entire subdirs

cat {newfile} >> {oldfile}

Append newfile to end of the oldfile

Move or rename file

mv {oldfile} {newfile}

Moving file as well as renaming it are the same thing

mv {oldname} {newname}

Have your own Unix and JS cheat sheet today, but make sure that you compile all information you need to make it easy to organize. Start reviewing and making notes of the details provided on this page to learn more.

Use our Unix VI editor cheat sheet today!

References

http://www.mathcs.emory.edu/~valerie/courses/fall10/155/resources/unix_cheatsheet.html

Download as PDF

Next Post

Previous Post

© 2017 My Cheat Sheet

Theme by Anders Norén