=====Linux Tutorial Two=====
====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
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 to compile the s
: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
=====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-
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
ng a shell, try typing ''ls'' to get a listing of files in your home directory.
When you have finished ... ion, type ''exit'' into the shell.
===== Copying files between computers =====
It is possible to copy files over a network securely using both the sftp and ... you an interactive session in which you can list files on a remote computer, upload files to your depar
====== Linux Basics ======
===== Files, Directories and Paths =====
* a //file// is a collection of data with a name (a //filename// to be precise). Although it may be stored in sep... the hardware, programs will generally work with a file as a single continuous collection of data.
* a
anced topics not offered at Vassar" seminar.
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. T
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
===== 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
e allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are given 7 days to remove excess files.
To check your current quota and how much of it...
The df command reports on the space left on the file system. For example, to find out how much space i
g_with_dropboxes]] ))
Pickup allows you to place files for pickup in your course directories such that those files cannot be read by your students until they run t... empt to kill the script (say, after it copies the files and before it logs that it has) that attempt wil... wing line to the course account's @@~/.supertab@@ file, if the account does not already have a @@.supert
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
===== Linux Tutorial =====
==== 1.1 Listing files and directories ====
__**ls**__ (list)
When you fi... , **compsci-user**, and it is where your personal files and subdirectories are saved.
To find out what ... help:general_linux:ls.png?600|}}
There may be no files visible in your home directory, in which case, t... eturned. Alternatively, there may already be some files inserted by the System Administrator when your a