Data Management Flashcards
(209 cards)
Operating System
Intermediary between software and hardware, managing hardware allocation.
UNIX Philosophy
- Each program does 1 thing well
- Output of every program expected to be input of another
- Try software early, expect wasted effort
- Use tools to help program over unskilled help
Linux Benefits
- Largely virus free as limited user system access + not many viruses are made for Linux
- Kernel separate from rest of OS preventing bugs elsewhere in OS from crashing whole system
Index Node (inode)
Describes a file-system object (file/directory). Stores attributes and location of data (metadata).
Inode number
References an inode. Associated with a file object name.
Separating metadata benefits.
- Allows for fast moving of files
- Can alter file while opened by another applicaiton.
pwd
Gives the current absolute path.
ls
Lists the files at the current location.
cd
Move Directory
Meaning of UNIX files starting with a dot?
They are hidden.
man
man [cmd] - Gives help with command.
mkdir
mkdir [directory name] - Creates a directory(folder)
rmdir
rmdir [directory name] - removes a directory. Must be empty
touch
touch [filename] - creates empty file.
cat
displays the contents of entire file
less
Displays part of file allowing for forwards and backwards movement.
head
UNIX
Top (default) 10 lines of file
tail
Bottom (default) 10 lines of file
program to program piping
program1 | program2 (program 1 output goes to program2 input)
program to file piping
program > file - program output written to file. > > used to append (no space)
file to program piping
program < file - program takes input from file
filter
Program that accepts text and changes it
pipe
Connection between two filters
wc
Prints the number of lines, words and characters