1、切换到root根目录
cd /root
2、创建文件夹story以及story的子目录fantacy和love
mkdir story
cd story
mkdir fantacy love
3、在story/fantacy下创建文件love.txt,在story/love下创建文件test.txt
cd fantacy touch love.txt
cd ../love touch test.txt
4、在love.txt中添加如下内容:
Of all the areas of contemporary thought, economics seems the most resistant to the destabilizing effects of postmodernism. Yet, David Ruccio and Jack Amariglio argue that one can detect, within the diverse schools of thought that comprise the discipline of economics, “moments” that defy the modernist ideas to which many economists and methodologists remain wedded. This is the first book to document the existence and to explore the implications of the postmodern moments in modern economics.
Ruccio and Amariglio begin with a powerful argument for the general relevance of postmodernism to contemporary economic thought. They then conduct a series of case studies in six key areas of economics. From the idea of the “multiple self” and notions of uncertainty and information, through market anomalies and competing concepts of value, to analytical distinctions based on gender and academic standing, economics is revealed as defying the modernist frame of a singular science. The authors conclude by showing how economic theory would change if the postmodern elements were allowed to flourish.
A work of daring analysis sure to be vigorously debated, Postmodern Moments in Modern Economics is both accessible and relevant to all readers concerned about the modernist straightjacket that has been imposed on the way economics is thought about and practiced in the world today.
cd ../fantacy
vi love.txt
i
esc :x
5、将文件love.txt移动到story/下,并重命名为fairy.txt
mv /root/story/fantacy/love.txt /root/story/fairy.txt
//mv love.txt fairy.txt
6、查看文件中包含economi和modern字样的内容,并将内容添加到test.txt中
cat fairy.txt|grep modern >> /root/story/love/test.txt
cat fairy.txt|grep economi >> /root/story/love/test.txt
7、关闭并禁用防火墙
systemctl stop firewalld
systemctl disable firewalld
8、如何删除文件中包含change的行
/change
dd
9、如何修改文件test.txt的权限为r-x-wxrw-
chmod 536 test.txt
10、如何将当前目录下的tomcat-8-7.20.tar.gz解压到opt/bigdata/java下
tar -zxvf tomcat-8-7.20.tar.gz -C opt/bigdata/java
11、如何配置tomcat-8-7.20.tar.gz的环境变量
vi /etc/profile
export TOMCATHOME=/opt/bigdata/java/tomcat85
export PATH=$TOMCATHOME/bin:$PATH