RH033读书笔记(3)-Lab 4 Browsing the Filesystem
Lab 4 Browsing the Filesystem
Sequence 1: Directory and File Organization
1. Log in as user student with the password student.
2. [student@stationX ~]$ pwd
/home/student
3. ls
ls -a
ls -al
-a option includes files whose names begin with a period and used for storing configuration information
The fifth column of ls -l's output displays the file's size.
4. [student@stationX ~]$ touch {report,graph}_{jan,feb,mar}
5. [student@stationX ~]$ ls
6. Make directory
[student@stationX ~]$ mkdir Projects
[student@stationX ~]$ mkdir Projects/graphs
[student@stationX ~]$ cd Projects
[student@stationX Projects]$ mkdir reports
[student@stationX Projects]$ cd reports
[student@stationX reports]$ mkdir ../Backups
[student@stationX reports]$ cd
[student@stationX ~]$ ls -l
[student@stationX ~]$ ls Projects
7. Move files
[student@stationX ~]$ mv graph_jan Projects/graphs
[student@stationX ~]$ mv graph_feb graph_mar Projects/graphs
[student@stationX ~]$ ls -l Projects/graphs/
8. Move the files in one command:
[student@stationX ~]$ mv report_jan report_feb Projects/reports
[student@stationX ~]$ ls -l Projects/reports
9. Remove the remaining report file:
[student@stationX ~]$ rm report_mar
[student@stationX ~]$ ls
10. Copy one using an absolute pathname and the other using a relative pathname:
[student@stationX ~]$ cd Projects/Backups
[student@stationX Backups]$ pwd
[student@stationX Backups]$ cp ../reports/report_jan .
[student@stationX Backups]$ cp /home/student/Projects/graphs/graph_jan .
[student@stationX Backups]$ ls -l
11. exit
Sequence 2: Managing Files with Nautilus
1. If you have not already, log into the graphical environment.
2. Double-click on the student's Home icon on your desktop.
3. Double-click on Projects, then graphs.
4. With the graphs window selected, press Ctrl-Shift-w to close the parent directory windows.
5. Press Ctrl-a to select all three graphs.
6. Press Ctrl-c to copy the files.
7. Press Ctrl-l (the letter l, not the number 1) to display the Open Location dialog. Type /tmp
(note that you can use tab-completion) and press Enter to open a new window displaying /
tmp.
8. Press Ctrl-Shift-n or right-click on the window background and select Create Folder to
create a new directory.
9. Type in Stuff_for_Bob as the new directory's name and double-click the directory to
open it
10. Press Ctrl-v to paste your graphs into /tmp/Stuff_for_Bob.
11. Press Ctrl-q to close all Nautilus windows
Sequence 3: Backing-up your system configuration
1. Log in on tty1 as user root with the password of redhat.
2. [root@stationX ~]# mkdir ~/backups
3. recursively copy
cp -rpv /etc/sysconfig ~/backups/sysconfig-20071231
cp -av /etc/sysconfig ~/backups/sysconfig-20071231
4. cp -av /etc/sysconfig ~/backups/sysconfig-20071231
~/backups/sysconfig-20071231/sysconfig/
5. cp -av /etc/sysconfig ~/backups/sysconfig-20071231
be prompted for confirmation before overwriting
RH033读书笔记(3)-Lab 4 Browsing the Filesystem的更多相关文章
- RH033读书笔记(15)-Lab 16 The Linux Filesystem
Lab 16 The Linux Filesystem Goal: Develop a better understanding of Linux filesystem essentials incl ...
- RH033读书笔记(2)-Lab 3 Getting Help with Commands
Lab 3 Getting Help with Commands Sequence 1: Using the Help Tools 1. man -f keyword whatis keyword l ...
- RH033读书笔记(5)-Lab 6 Exploring the Bash Shell
Lab 6 Exploring the Bash Shell Sequence 1: Directory and file organization 1. Log in as user student ...
- RH033读书笔记(4)-Lab 5 File Permissions
Lab 5 File Permissions Sequence 1: Determining File Permissions 1. What is the symbolic representati ...
- RH033读书笔记(7)-Lab 8 Introduction to String Processing
Lab 8 Introduction to String Processing Sequence 1: Exercises in string processing 1. Other than the ...
- RH033读书笔记(6)-Lab 7 Standard I/O and Pipes
Lab 7 Standard I/O and Pipes 1. [student@stationX ~]$ cat /proc/cpuinfo /proc/meminfo 2. [student@st ...
- RH033读书笔记(8)-Lab 9 Using vim
Lab 9 Using vim Sequence 1: Navigating with vim 1. Log in as user student 2. [student@stationX ~]$ c ...
- RH033读书笔记(10)-Lab 11 Process Control
Lab 11 Process Control Sequence 1: Job Control 1. [student@stationX ~]$ su - 2. Begin some jobs in t ...
- RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools
Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...
随机推荐
- Unix文本处理工具之awk
Unix命令行下输入的命令是文本,输出也都是文本.因此,掌握Unix文本处理工具是很重要的一种能力.awk是Unix常用的文本处理工具中的一种,它是以其发明者(Aho,Weinberger和Kerni ...
- Codeforces Round #296 (Div. 2) A. Playing with Paper
A. Playing with Paper One day Vasya was sitting on a not so interesting Maths lesson and making an o ...
- C语言中的system函数參数具体解释
http://blog.csdn.net/pipisorry/article/details/33024727 函数名: system 功 能: 发出一个DOS命令 用 法: int sy ...
- Enable OWIN Cross-origin Request
微软出了一套解决方式能够解决 "同意WebAPI的 CORS 请求" http://www.asp.net/web-api/overview/security/enabling-c ...
- 微信支付.net官方坑太多,我们来精简
原文:微信支付.net官方坑太多,我们来精简 微信支付官方坑太多,我们来精简 我把官方的代码,打包成了 an.wxapi.dll. 里面主要替换了下注释.呵呵.然后修改了几个地方. 修改一.Confi ...
- C++ Primer 学习笔记_61_重载操作符与转换 --自增/自减操作符
重载操作符与转换 --自增/自减操作符 引言: 自增,自减操作符常常由诸如迭代器这种类实现,这种类提供相似于指针的行为来訪问序列中的元素.比如,能够定义一个类,该类指向一个数组并为该数组中的元素提供訪 ...
- Android拖动和缩放图片
Android拖动和缩放图片 2014年5月9日 我们在使用应用其中常常须要浏览图片.比方在微信其中.点击图片之后能够对图片进行缩放. 本博客介绍怎样对图片进行拖拽和缩放.这首先要了解Android中 ...
- ORA-00210 ORA-15001 ORA-15055 ORA-01031: insufficient privileges
ORA-00210: cannot open the specified control file ORA-00202: control file: '+DATA/posdb/con ...
- 用Python的Tkinter实现时钟
import Tkinter,sys,time root=Tkinter.Tk() root.minsize(, ) Label1=Tkinter.Label(text=time.strftime(' ...
- 有向无环图(DAG)的最小路径覆盖
DAG的最小路径覆盖 定义:在一个有向图中,找出最少的路径,使得这些路径经过了所有的点. 最小路径覆盖分为最小不相交路径覆盖和最小可相交路径覆盖. 最小不相交路径覆盖:每一条路径经过的顶点各不相同.如 ...