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的更多相关文章

  1. RH033读书笔记(15)-Lab 16 The Linux Filesystem

    Lab 16 The Linux Filesystem Goal: Develop a better understanding of Linux filesystem essentials incl ...

  2. 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 ...

  3. 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 ...

  4. RH033读书笔记(4)-Lab 5 File Permissions

    Lab 5 File Permissions Sequence 1: Determining File Permissions 1. What is the symbolic representati ...

  5. RH033读书笔记(7)-Lab 8 Introduction to String Processing

    Lab 8 Introduction to String Processing Sequence 1: Exercises in string processing 1. Other than the ...

  6. 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 ...

  7. 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 ...

  8. RH033读书笔记(10)-Lab 11 Process Control

    Lab 11 Process Control Sequence 1: Job Control 1. [student@stationX ~]$ su - 2. Begin some jobs in t ...

  9. RH033读书笔记(9)-Lab 10 Understanding the Configuration Tools

    Lab 10 Understanding the Configuration Tools Sequence 1: Configuring the Network with system-config- ...

随机推荐

  1. JAVA NIO 选择器

    为什么要使用选择器 通道处于就绪状态后,就可以在缓冲区之间传送数据.可以采用非阻塞模式来检查通道是否就绪,但非阻塞模式还会做别的任务,当有多个通道同时存在时,很难将检查通道是否就绪与其他任务剥离开来, ...

  2. UVALive 5791 Candy's Candy 解题报告

    比赛总结 题目 题意: 有f种口味的糖果,现在要把每颗糖果分到一些packs里面去.packs分两种: flavored pack:只有一种口味. variety pack:每种口味都有. 求满足下列 ...

  3. 跟我一起学extjs5(13--运行菜单命令在tabPanel中显示模块)

    跟我一起学extjs5(13--运行菜单命令在tabPanel中显示模块)         上面设计好了一个模块的主界面,以下通过菜单命令的运行来把这个模块增加到主界面其中. 在MainModule. ...

  4. POJ 2418 Hardwood Species( AVL-Tree )

    #include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> ...

  5. PCI 总线学习笔记

    转载请注明出处:http://blog.csdn.net/lg2lh/article/details/8042008 PCI的基本协议这里就不介绍了,由于一般的芯片协议都是集成好的,我仅仅须要大体了解 ...

  6. Java发展的时间表

    Java发展的时间表. (版本号 名称 中文名 发布日期) JDK 1.1.4 Sparkler 宝石 1997-09-12 JDK 1.1.5 Pumpkin 南瓜 1997-12-13 JDK 1 ...

  7. uva 1510 - Neon Sign(计数)

    题目链接:uva 1510 - Neon Sign 题目大意:给定n个点,随意三点不共线,而且两两点之间有一条线,给定线的颜色.问说有多少个三角形三边同色. 解题思路:对于每一个点.记录该点黑色边的数 ...

  8. 标准输入的原理:cin与scanf

    1.cin 该方法 1)假设cin读取整数.会自己主动忽略换行和空格.遇到文件结束标记.cin  >> a返回的数false     int a;     while(cin >&g ...

  9. Maven, Ivy, Grape, Gradle, Buildr, SBT, Leiningen, ant

    Maven, Ivy, Grape, Gradle, Buildr, SBT, Leiningen, ant

  10. RESTEasy:@FormParam、@PathParam、@QueryParam、@HeaderParam、@CookieParam、@MatrixParam说明

    在第一RESTEasy教程我们已经学习了基本的Web服务和休息我们已经测试了一个简单的REST风格的Web服务.在本教程中,我们将显示如何将Web应用程序元素(形式参数,查询参数和更多)为REST风格 ...