=2.1 Copying Files====
===cp (copy)===
**cp** **file1** **file2** is the command which makes a copy of **file1** in the current working directory and calls it **file2**
What we are going to do now, is to take a fil
:sysnews#Overview]]
* [[:sysnews#Creating a tar file of your entire directory]]
* [[:sysnews#Copying the file to another location]]
* [[:sysnews#Tar Document... re it.
The process consists of making an archive file (one file that contains all your files - or at least the interesting ones) and then moving that file of
of the **cat** command to write the contents of a file to the screen.
Now type **cat** without specifing a file to read
<code>compsci-user@tim:~$ cat</code>
Th... you run the **cat** command without specifying a file to read, it reads the standard input (the keyboard), and on receiving the'end of file' (**^D**), copies it to the standard output (the
Two files are needed for this system. A password file and an access file. Only one password file is needed, any number off access files may refer to the same password file. The password file should never be put in a loca
ers to simplify these steps.
===make and the Makefile===
The make command allows programmers to manage... program gets its set of compile rules from a text file called Makefile which resides in the same directory as the source files. It contains information on how... , etc.
Some packages require you to edit the Makefile by hand to set the final installation directory a
=====Linux Tutorial Five=====
====5.1 File system security (access rights)====
In your testdir director... of your directory, similar to the example below.
File and directory access rights
Each file (and directory) has associated access rights, which may be found... additional information as to which group owns the file (beng95 in the following example):
* -rwxrw-r-
===== Linux Commands : file - search / replace =====
For the following cmds, the //test.file// contains:
<code>
1 cat barn food
2 dog house ki... </code>
==== grep ====
"searches the named input FILE for lines containing a match to PATTERN"
* Good for searching a file for a certain pattern
<code>
user@tim:~$ grep --h
k on the "Download ZIP" option. Save the ''.zip'' file.
- if necessary, move the ''.zip'' file from your downloads folder to your ''cs101'' folder on your Desktop.
- unzip the file
- if you're on a Mac you can double-click ... ht-click on it and select "Extract All"
- a file named ''lab1.rkt'' should be in the folder that w
view|Overview]]
* [[#doit|Creating the cd image file]]
* [[#burnit|Burning the image to a CD or DVD in the Advanced Lab]]
* [[#moveit|Copying the file to another location to burn]]
* [[#docs|mkisofs... image onto a CD or DVD in the lab or moving that file off our system to some other place where you can ... h Joliet directory records in addition to iso9660 file names. This type of image can then be burned onto
save it on your computer
- move the Lab 7 zip file from its download location to the ''cs101'' folde... last week.
- extract the contents of the zip file either by double-clicking on it or control-clicki... ab7'' folder and confirm you see the ''lab7.rkt'' file there
\\ \\ Now you are ready to write some funct...
- Launch DrRacket and open your ''lab7.rkt'' file \\ \\
- Fill in your name where <YOUR NAME> ap
SSH keys. On the PuTTY website, download the .msi file in the Package files section at the top of the pa... ick [Save public key] to save the public key to a file. This is the file that you will install on a remote host that you want to connect to using SSH keys rather than typing a password. A MS Windows "Save file" dialog box opens. You can create a folder called
===== Files, Directories and Paths =====
* a //file// is a collection of data with a name (a //filena... the hardware, programs will generally work with a file as a single continuous collection of data.
* a... * a //path// is a way of naming the location of a file, directory, link or device. //Paths// can be //r... ory of bob.
* **//rm filename//** : removes the file filename where filesname may be a fully qualified
e allocated a certain amount of disk space on the file system for their personal files, usually about 10...
The df command reports on the space left on the file system. For example, to find out how much space i... code>
===compress===
This reduces the size of a file, thus freeing valuable disk space. For example, t... s -l science.txt</code>
and note the size of the file. Then to compress science.txt, type
<code>compsc
s to your computer. The scp program will copy one file or a group of files between computers and exit ri... s in current directory on remote computer|
|''get FILE''| copy FILE from remote computer|
|''put FILE''| copy FILE to remote computer|
|''!COMMAND''| execute COMMAND on lo