Module 1 last day ben: tech job, Glossary Flashcards
the path that starts from the main directory
Absolute path
a nickname for common commands
Alias
A way to add the data of the file without erasing existing data
Appending flags
The language used to interact with the shell
Bash
Command Line Interpreter
CLI
A text interfact program for a computer that inputs text commands and translates them to the operating system
Command line
A concept that means that the next character after the back tick or other escape character should be treated literally
Escape characters
a file extension found in Windows for an executable file
.exe
a collection of users
groups
a graphical user interface
gui
a set of files that are not visible either to avoid alteration or because you don’t want someone to see them
Hidden files
a keyboard shortcut that does a particular task
hot key
an input stream handles data flowing into and out of a program. Think of them as actual streams.
I/O Streams
a value that is associated with a command in Windows. Used to specify it.
Parameter
A directory that houses directories
Parent directory
A directory that is housed inside of a directory
Child directory
a main directory that branches off and holds other directories and files
Paths
Shows you which directory you are in
prompt
a pattern matching language that describes words, phrases, or more complicated patterns, used to help you do advanced pattern based selection
Regular Expression
a path from your current directory
relative path
a parent directory for all other directories in a file system
root directory
a command line interpreter for Linux
Shell
data stream that redirects the output of error messages in a different output stream. works n linux and windows
Standard error (stderr)
a data stream in which the input that you provide through the keyboard goes to the standard in stream of the process that you are interacting with. works in both Linux and Windows
Standard in, stdin
a data stream that when a process creates output, it adds data to the standard out stream, which flows out of the process. Works in linux and windows
Standard Out, stdout
three data streams created when you launch a Linux command
stdin, stdout, stderr
a directory below or at a deeper level in the directory hierarchy
subdirectories
a way to auto-complete a command or file names and directories
tab completion
a character used to help select files based on a certain pattern
wildcard
what does the -p parameter do with the mkdir command linux?
allow mkdir to make parent directories if they don’t exist
what does the -m flag do for mkdir?
set permissions of directories during creation
what does the -v flag do in
run command in verbose mode
what command only removes empty directories in linux?
rmdir
what is the format for using rmdir?
rmdir dir_name
what is the format for removing multiple directories with rmdir?
rmdir dir1 dir2 dir3
what does the -p flag do for rmdir?
makes rmdir remove parent directories, if they are empty
what is the touch command used for by default in linux?
change the modification and access times of a file. If the file doesn’t exist, it is used to create a file with default permissions.
what is the format for touch to make a file?
touch empty_file
what flag can the touch command use to prevent a new file from being made if it doesn’t exist yet?
-c
what does the cp command do?
used to make a copy of one or more directories or files.
What command takes at least one source name and one target name. If the target is a file, then the source must also be a file, and a copy of the source will be made with the new name supplied in target? If the target name isn’t specified, a copy of the source will be made in the target directory under the same name. If a file with the target name already exists in the target directory, it’ll be replaced. If the target is an existing directory, then all sources will be copied into the target directory. If the target is a directory that doesn’t exist, then the source must also be a directory. A copy of the directory and its contents will be made in target under the same name.
cp
what does the command
cp /home/user/source_file /home/user/duplicates/target_file
do?
copy the source file in the directory /home/user/ to the directory ‘duplicates’ as ‘target file’
what command is used to move one or more files or directories into a different location, or rename them to a new name? you are Required to pass at least one source and target file names or directories. Follows the rules for existing or non-existing directories or files as cp.
mv
what command moves the file “source_file” in /home/user/ to the directory “moved_files” and gives it the name “target_name”
mv /home/user/source_file /home/user/moved_files/target_file
what command is used to remove one or more files, where you need to supply at least one argument to remove?
rm
how can you remove duplicate file youmade “duplicates” using rm?
rm /home/user/duplicates/target_file
cd
do you need flags to move hidden files?
no, if you can see them, you know them, you move them.
how can you specify that you are moving a file to the current directory in linux?
mv /home/user/Images/Filename.jpg .
format to remove a non-empty directory
rm -r non_empty_dir
what is a command used to search through files for the occurrence of a string of characters that matches a specified pattern?
grep
-r flag in grep
search recursively
-w in grep
match the whole word
-n in grep
only in line number
-e in grep
match pattern
–include in grep
include files in the search
–exclude in grep
exclude files in the search
–include-dir grep
include directories in the search
–exclude-dir in grep
exclued directories in the search
what command will open a file in the terminal and display the current file contents, whre you can edit?
nano /path/to/existing_file
how do you save to nano?
ctrl O
how do you close out of nano
ctrl x
help in nano?
ctrl g
exit help in nano
ctrl x
If you are on file.txt, in black_folder, in the users directory, in the c drive, what is the parent directory of file.txt?
The users directory, because when considering what directory is your parent you need to pay attention to what directory you are in. A file is not a directory. Look at the closest directory in the path, not file, and then the parent directory is the one above that.
on my computer, where will ~\ go in Windows?
C:\Users\Adminiscule\
how do you ask for help?
–help. Don’t
hahaha.
Try:
this pc, c drive, users path? maybe. hahahah