Skip to Content
Java持续交付
book

Java持续交付

by Daniel Bryant, Abraham Marín-Pérez
November 2019
Beginner to intermediate
406 pages
9h 21m
Chinese
Publishing House of Electronics Industry
Content preview from Java持续交付
92
6
其他构建工具和技巧
可以使用
cp
命令来复制一个文件:
cp original_le new_copy_le
。如果你要复制目录,
必须在命令中使用
-r
参数。这个参数表示
递归
,因为它会复制目录以及目录下所有的文
件。如果要复制一个目录,无论目录是否为空,都需要使用
-r
参数
cp -r existing_
directory location_ for_deep_copy
。如果要删除一个文件,可以使用
rm
命令。如果
要删除一个非空目录,则必须使用
-r
参数,以递归的方式删除目录下的所有文件,以及
目录本身。
命令行没有撤销功能
在使用任何破坏性的命令(例如
rm
mv
或者
cp
命令)时,请格外小心。这些
操作都无法撤销,因此你可能会意外永久删除重要的文件。如果你像我们一样,
经历过几次这种事故后就会吸取教训。我们现在使用的一种策略是,在实际输
入命令之前,先列出我们要删除、移动或者替换的文件。例如,如果要删除所
有带有
* .ini
扩展名的文件,但保留其他文件,我们会先切换到相应的目录下,
列举出所有的
ini
文件(通过
ls *.ini
命令),确认这些文件无误,然后再执
行删除命令
rm *.ini
查看和编辑文本
不同于某些操作系统,
Linux
和其他类
UNIX
操作系统主要依赖纯文本文件工作,因此
学习如何通过命令行查看文本文件非常重要。在终端上查看文件内容的基本方法,是使
cat
这个命令(例如,
cat /etc/hosts
)。但是这无法用于查看大文件或者在文本中搜
索关键字,因此通常会使用一个分页程序 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
Java性能优化实践:JVM调优策略、工具与技巧

Java性能优化实践:JVM调优策略、工具与技巧

Benjamin J. Evans, James Gough, Chris Newland
Python和NLTK实现自然语言处理

Python和NLTK实现自然语言处理

Posts & Telecom Press, Nitin Hardeniya
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普

Publisher Resources

ISBN: 9787121374425