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- ...
随机推荐
- HDU3257 Hello World!
Hello World! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Tot ...
- Codeforce 57C Array
C. Array time limit per test 2 seconds memory limit per test 256 megabytes input standard input outp ...
- Samba & Nginx - Resource temporarily unavailable
先说说本人的开发环境:Win7 + Editplus + VMware(Centos+Samba+Nginx).用Samba在Centos上把web文件夹(如www)共享,然后在Win7上訪问这个文件 ...
- JavaScript(15)jQuery 选择器
jQuery 选择器 选择器同意对元素组或单个元素进行操作. jQuery 元素选择器和属性选择器同意通过标签名.属性名或内容对 HTML 元素进行选择. 在 HTML DOM 术语中:选择器同意对 ...
- sd nfrmtl
http://www.zhihu.com/collection/24337307 http://www.zhihu.com/collection/24337259 http://www.zhihu.c ...
- 【Unity 3D】学习笔记三十七:物理引擎——碰撞与休眠
碰撞与休眠 上一篇笔记说过,当给予游戏对象刚体这个组件以后,那么这个组件将存在碰撞的可能性.一旦刚体開始运动,那么系统方法便会监视刚体的碰撞状态.一般刚体的碰撞分为三种:进入碰撞,碰撞中,和碰撞结束. ...
- 基于Hadoop的地震数据分析统计
源码下载地址:http://download.csdn.net/detail/huhui_bj/5645641 opencsv下载地址:http://download.csdn.net/detail/ ...
- spring集成 JedisCluster 连接 redis3.0 集群
最近在公司做了 jedisCluster整合spring 的配置, 分享如下 客户端采用最新的jedis 2.7 1. maven依赖: <dependency> <groupId& ...
- poj3126(bfs)
题目链接:http://poj.org/problem?id=3126 题意:给两个四位数n,m,将n变成m需要多少步,要求每次只能改变n的某一位数,即改变后的数与改变前的数只有一位不同,且每次改变后 ...
- zoj1940(三维广搜)
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=940 分析:三维其实就是六个方向地搜索,思维清晰且细心点,很快就AC了 ...