Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
changes into the dir directory goes one directory above the current directory goes into the root directory |
|
|
Term
|
Definition
both take you to the $HOME directory |
|
|
Term
|
Definition
make a directory makes all the directories including the parent ones |
|
|
Term
|
Definition
display the current directory contents/structure |
|
|
Term
|
Definition
stands for manual and when put in front of a keyword will show the manual for that command |
|
|
Term
|
Definition
retrieves commands already run |
|
|
Term
|
Definition
|
|
Term
|
Definition
copies a file and puts it in the new place. Cant copy a directory by itself it needs to be done recursively.
cp love ~/films/hate rename the copied file in the new place |
|
|
Term
|
Definition
list all the files in the current directory |
|
|
Term
|
Definition
lists all the files including the invisible stuff |
|
|
Term
|
Definition
move and/or rename mv firstname newname |
|
|
Term
rm filename rm -i filename rm -v filename rm -r rmdir |
|
Definition
removes file immediately gives you option about whether you want to remove file and then removes it gives you feedback on what happened
-- removes directories |
|
|
Term
brace expansion touch f{1,2,4} touch g{2..5} |
|
Definition
using the curly braces to get a range of things repeating num..num only works for letters and numbers, not roman numerals |
|
|
Term
|
Definition
match anything including nothing |
|
|
Term
|
Definition
match single character, must have character to match |
|
|
Term
|
Definition
match each individual character |
|
|
Term
|
Definition
matches characters in the range |
|
|
Term
|
Definition
match all but included characters |
|
|
Term
|
Definition
match all characters except those in the range |
|
|
Term
|
Definition
insert mode use esc to go back to command mode |
|
|
Term
|
Definition
delete lines 4dd - delete 4 lines |
|
|
Term
|
Definition
delete word 4dw d4w deletes 4 words |
|
|
Term
|
Definition
|
|
Term
|
Definition
means paste lowercase p means paste below current line uppercase p means paste above current line |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
lower case a - append after cursor |
|
|
Term
|
Definition
upper case A - append to end of line |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
search for "xyz" n for next |
|
|
Term
|
Definition
do the last command again |
|
|
Term
|
Definition
left cursor, cursor down, cursor up, cursor right |
|
|
Term
editiing with vim shift zz |
|
Definition
|
|
Term
editing with vim command mode :w |
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
Yes I'm sure I want to quit without saving |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
shows everything in the file. shows how much percentage wise youre through. once you scroll you can't get back to where you were. |
|
|
Term
|
Definition
just like more except you can scroll up and down |
|
|
Term
What can we do to insert multiple commands on the same line? |
|
Definition
|
|
Term
|
Definition
on it's own its the first ten lines of a file |
|
|
Term
|
Definition
first whatever number of lines |
|
|
Term
|
Definition
|
|
Term
|
Definition
cut grabs a certain part of the file needs the column number and the file name as well as a deliminator when using -d |
|
|
Term
|
Definition
fixed search, searches each line for a word could bee a part of a word as well |
|
|
Term
|
Definition
sorts alphabetically by default alphabetically by first character doesn't care if it's a number |
|
|
Term
|
Definition
generic numeric sort. if you have both nums and letters it does both |
|
|
Term
|
Definition
report or omit repeated lines. usually omits them |
|
|
Term
|
Definition
word count
-l for lines -w for words -m for characters -c for bytes |
|
|
Term
|
Definition
takes the output before it and put it in a file this overrides what's currently int he file |
|
|
Term
|
Definition
takes the output before it and put it in a file. it appends itself to the current file |
|
|
Term
|
Definition
makes it so it's all on one line |
|
|
Term
|
Definition
also appends whatever is before it to a file |
|
|
Term
|
Definition
if you dont want to display the filename |
|
|
Term
|
Definition
stands for long listing and gives you the read, write, execute of all the users, group, and other |
|
|
Term
|
Definition
gives read, write, execute powers |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
all users can execute all files |
|
|
Term
chmod can also use numbers |
|
Definition
read - 4 write -2 execute - 1 so if a user has all permissions and group has read and others none it' be 640 |
|
|
Term
|
Definition
makes links between files |
|
|
Term
|
Definition
once you make a hardlink it doesn't care about the original
ln hellofile linkname |
|
|
Term
difference between hardlink and copy |
|
Definition
copy makes a copy and the newfile doesn't point to the old file content
whereas when they are linked the new link points directly to the content |
|
|
Term
|
Definition
ln -s
different inode , not looking at inode but file path |
|
|
Term
|
Definition
what is the original file path |
|
|
Term
|
Definition
gives the path of whtaever you feed into it but PLOT TWIST it doesn't check for existing items |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
if you're lookin for name say name and if type say type |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
# of lines with that word on it |
|
|
Term
|
Definition
any line that doesn't cntain that word it's the inverse |
|
|
Term
|
Definition
doesn't care about capitalization |
|
|
Term
|
Definition
^ start of the line $ eend of the line * the thing directly before it 0 or more times |
|
|
Term
|
Definition
THERE CANNOT BE A SPACE NEAR THE EQUALS SIGN |
|
|
Term
difference between " " and '' |
|
Definition
unix knows "" has to apply rules unix '' has it be literal |
|
|
Term
|
Definition
lets you get away with not having a space |
|
|
Term
|
Definition
gets the amount of chars in that variable |
|
|
Term
do decimals truncate or round |
|
Definition
DECIMALS TRUNCATE NOT ROUND |
|
|
Term
what do strings equal in math? |
|
Definition
|
|
Term
what do you need to use if you want decimals? |
|
Definition
|
|
Term
|
Definition
shows the processes that you the user are currently running |
|
|
Term
|
Definition
|
|
Term
|
Definition
|
|
Term
|
Definition
is like tree but for processes
ps --forest |
|
|
Term
|
Definition
|
|
Term
|
Definition
shows you where the command is stored |
|
|
Term
|
Definition
who's logged into the system when and where |
|
|
Term
|
Definition
finger firstname.lastname
gives you more info than who |
|
|
Term
|
Definition
exist across multiple shells
env |
|
|
Term
|
Definition
removes a direectory recursively |
|
|
Term
|
Definition
throw the errors away that the thing is going to give |
|
|
Term
|
Definition
|
|