LONZARK

V1

2023/04/18阅读:6主题:默认主题

UNIX commands

UNIX commands

Directories

ls: list the files and folders inside of the current directory

mkdir: make a new directory. For example, mkdir example creates a directory called example

cd: change directories. For example, cd example changes directories to example

rm -r: recursively remove a specified directory. For example, rm -r example removes the example directory and all files and subdirectories inside it.

Files:

cat: displays the contents of a file on the screen. For example, cat unix.txt shows the contents of the file unix.txt

mv: moves a file/directory to another file/directory. For example, mv file1 file2 moves the contents of file1 into a (possibly new) file called file2. When moving one file to another, we are effectively renaming the file!

cp: copies a file to another file/directory. For example, cp file1 file2 copies the contents of file1 into a file named file2.

rm: removes a file. For example, rm file1 deletes the file called file1.

Miscellaneous:

echo: displays words on the screen

man: displays manual pages for a specified command

分类:

后端

标签:

操作系统

作者介绍

LONZARK
V1

我爱学习,学习爱我