Shared Flashcard Set

Details

Linux Commands
A list of basic Linux commands
53
Computer Science
Not Applicable
07/31/2019

Additional Computer Science Flashcards

 


 

Cards

Term
How do I copy?
Definition
Ctrl+Shift+C
Term
How do I paste?
Definition
Ctrl+Shift+V
Term
How do I copy from the browser?
Definition
Ctrl+C
Term
How do I paste something from the browser?
Definition
Ctrl+Shift+V.
Term
What command do I use to get the present work directory?
Definition
pwd
Term
What command and flag do I use to see the actual physical path, with all of the symlinks resolved?
Definition
pwd -P
Term
What command do I use to see what files or directories are in your current directory, or another directory?
Definition
ls
Term
What command do I use to see what files are in another directory, without first leaving your current directory?
Definition
ls /usr/local/
Term
What command and flag do I use to see what files see both "visible" and "hidden" files and directories?
Definition
ls -a
Term
What command and flag do I use to list out the names of the files and directories as well as give more detailed information about them?
Definition
ls -l
Term
What command and flag do I use to see the size of the file in human readable terms?
Definition
ls -lh
Term
What command and flag do I use with ls is -S, which will sort the results of ls by file size, instead of the default sorting by name?
Definition
ls -lhs
Term
What command and flag do I use sort my ls results by the last time the files were modified?
Definition
ls -lt
Term
What command and flag do I use to reverse the results of ls?
Definition
ls -lr
Term
What command do I use to create a link between two files?
Definition
ln a.txt b.txt
Term
What command do I use to remove a file?
Definition
rm a.txt
Term
What command do I use to see whats in a text?
Definition
cat a.text
Term
What command and flag do I use to force a link?
Definition
ln -f a.txt b.txt
Term
What command and flag do I use to create a symbolic link?
Definition
ln -s a.txt b.txt
Term
What command do I use to change directories?
Definition
cd a
Term
What command do I use if I want to move up to the parent directory ?
Definition
cd ..
Term
What command do I use if I want to navigate to the home directory ?
Definition
cd
Term
What command do I use if I want to create directory ?
Definition
mkdir foo
Term
What command and flag do I use if I want to create nested directories ?
Definition
mkdir -p a/b/c
Term
What command and flag do I use if I want to print the results mkdir command ?
Definition
mkdir -v a
Term
What command do I use to copy files?
Definition
cp a.txt b.txt
Term
What command do I use to copy multiple files?
Definition
cp a.txt b.txt foo
Term
What command and flag do I use print verbose output regarding the files that were copied?
Definition
cp -v a.txt b.txt
Term
What command and flag do I use to recursively copy the directory's contents to the new directory?
Definition
cp -Rv foo bar
Term
What command and flag do I use to force the copying of the source file to the target file?
Definition
cp -f a.txt b.txt
Term
What command and flag do I use t?
Definition
mv -v a.txt b.txt
Term
What command and flag do I use to build work flows by redirecting the output of one command to the input to another command?
Definition
ls -a ~ | grep _ | sed "s/_/-/g"
Term
What command and flag do I use to write that data to a file ?
Definition
ls -a ~ | grep _ > underscores.txt
Term
What command and flag do I use to write that file to a data?
Definition
ls -a ~ | grep _ < underscores.txt
Term
How to open the command line
Definition
CTRL + ALT + T
Term
What command creates a new file
Definition
Touch new-file.txt
Term
How do i remove a directory
Definition
rm -r
Term
How rename a directory
Definition
mc
Term
Which one is the prompt for [kamari@kamari-VirtualBox]:~$ rm -f foot.txt
Definition
kamari@kamari-VirtualBox
Term
Which one is the command for [kamari@kamari-VirtualBox]:~$ rm -f foot.txt
Definition
rm
Term
Which one is the option for [kamari@kamari-VirtualBox]:~$ rm -f foot.txt
Definition
#NAME?
Term
Which one is the argument for [kamari@kamari-VirtualBox]:~$ rm -f foot.txt
Definition
foot.txt
Term
A built-in command in the bash and C shells that writes its arguments to standard output.
Definition
echo <string> example echo hello world
Term
$ cat
Definition
Ctrl+C
Term
Command(s) allow to see the manuel for hoe the command works.
Definition
man <command> example: man ls
Term
How to get to the beginning of a command?
Definition
^A or CTRL+A
Term
How to get to the end of a command?
Definition
^E or CTRL+E
Term
How to get to a command?
Definition
^U or CTRL+U
Term
Which key is the option key on a windows keyboard?
Definition
The ALT key
Term
How to clear the command screen?
Definition
type clear in the command or press CTRL+L
Term
can only copy and paste text from online to command line by using what method
Definition
right click copy and paste
Term
Shortcut to open terminal
Definition
CTRL+ALT+T
Term
How to exit the terminal
Definition
^D or CTRL+D
Supporting users have an ad free experience!