Command Lines Flashcards
What is a CLI?
Command-line Interface
a text-based user interface (UI) used to view and manage computer files
a program on your computer that allows you to create and delete files, run programs, and navigate through folders and files
On a Mac, it’s called Terminal, and on Windows, it’s Command Prompt
What is a GUI?
Graphical User Interface
a type of user interface through which users interact with electronic devices via visual indicator representations
command: man
an interface to the system reference manuals
command: ls
list directory contents
list information about the file (the current directory by default)
command: pwd
print file name of current working directory
command: pwd
print file name of current working directory
tells you what directory you’re in
command: touch
make a file
change file timestamps
update the access and modification times of each file to the current time
to get the timestamps, if you do ls -l in a directory, you will see a time for each file.
if you touch a file, the time gets updated to now
there are a lot of ways to create files, but touch is a really commonly used one, because it’s relatively simple. part of the functionality is that the file that does not exist is created empty
command: mv
move (or rename) files
command: rm
remove files or directories
command: rm
remove files or directories
command: cp
copy files and directories