Unix 1 Flashcards
pwd
Will show you current directory
manage memory, I/O devices, allocates the time between user and process, inter-process communication, sets process priority
Kernel
- information about users logged on to system
who, w
- displays calendar for specified month of
specified year
cal 3 1995
is the most popular Unix shell, and is very similar to the
Bash shell
Korn shell
- displays calendar for specified year
cal 1995
LINUX was created by
Linus Torvalds
Linux was created by Linus Torvalds in the
1990’s, released to the
Internet in 1994, mostly using GNU C compiler
creates a new file, or updates stats (eg. timestamp) on an
existing file
touch
to create directories
mkdir
to create a directory & any parent directories not
already existing
mkdir -p
to delete empty directories, eg. ___ directorylist
rmdir
existing-file new-file to rename or move files & directories
mv
source-file destination-file - to copy files (careful, overwrites destination with no warning)
cp
to copy directories including files and subdirectories
cp -r
to delete files, eg. rm file-list
rm
to delete directories including files and subdirectories
rm -r
to delete directories including files and
subdirectories, with prompt to confirm removal
rm -ir
display contents of file
cat
displays file contents one page at a time
o <space> - will go to next screenful of information</space>
more or less -
b - will go to previous screenful of information
the ??? is a program that sits on the as an interface between users and kernel.
it is a command interpreter and also programming capability of its own.
has many types
shell
information about your session
who am i, whoami
is used to change current directory
cd
cd directory name
Unix is an
operating system (OS)
File Types as indicated by the first character in ls -l output:
o - indicates an ordinary file
o d indicates a directory
o l indicates a symbolic link
o b indicates a block device file, such as for a dvd reader
o c indicates a character device file, such as for a keyboard
o p indicates a pipe, used to communicate between processes on
the same server
o s indicates a socket, used to communicate between processes
on the same or different servers
this directories is used by some programs for temporary files
/tmp
is the heart of the operating system
Kernel
Unix file system is hierarchical
(tree, directory within directory)
GNU meaning ??
(Gnu’s not Unix)
contain standard utility programs
/bin and /usr/bin
some UNIX systems allow up to ??? characters in a filename
255 character
allocate resources and schedule tasks
resources include CPU, memory, disk, tape, printers, terminals,
modems, etc.
operating system
ls flag that give long form gives more information about files
ls -l -
gives information about the directory itself, not
contained files
ls -d
Unix is develop for
mini computer as a time-sharing computer
these options can be mixed and matched, eg. ls -ld
these options can be mixed and matched, eg. ls -ld
this file type indicates a socket, used to communicate between processes
on the same or different servers
s
to log out
control-d
standard directories & files
o /home typically contains the home directories of all users
o /bin and /usr/bin contain standard utility programs
o /sbin and /usr/sbin contain utilities for system
administration
o /etc contains admin & configuration files, such
as /etc/passwd
o /var contains files that vary as the system is running, such as
temp, log, spool, and mailbox files
o /dev contains files representing peripheral devices (device
drivers)
o /tmp is used by some programs for temporary files
Linux treats everything as a file including hardware devices
arranged as directory hierarchy
file system