Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Những câu lệnh Linux thường dùng pdf
MIỄN PHÍ
Số trang
4
Kích thước
89.3 KB
Định dạng
PDF
Lượt xem
1339

Những câu lệnh Linux thường dùng pdf

Nội dung xem thử

Mô tả chi tiết

commands to display file contents

cat pr more less

1. cat - conCATonate or display entire file contents

cat /etc/passwd

2. pr - format files with headings including the filename and page numbers

pr /etc/motd | lpr (formats the message-of-the-day file and

directs the output to the default printer)

3. more - display file contents one page at a time

cat /etc/passwd | more

is the same as:

more /etc/passwd

4. less - display file contents one page at a time

ls | less

keys used with the more and less commands:

up arrow key = up 1 line

down arrow key = down 1 line

spacebar = down 1 screen

b = back up 1 screen

q = quit

h = display help screen

commands to display file & directory attributes

ls pwd du find tree whereis

On a Linux file server used by several clients, there is a frequent need to find files,

modify files, share files and examine statistics about files. Linux has a number of very

useful commands for doing these kinds of tasks...

1. ls - list directory contents

ls (ls with no options: list files in current directory)

ls -a (list hidden files - files that begin with "." character)

ls -l (long/detailed listing)

ls -l /etc (list files in a specific directory)

1

Tải ngay đi em, còn do dự, trời tối mất!