Linux commands Flashcards
ls
displays information about files and directories contained within the current working directory,
ls-la
gives you a list of all files and folders in that directory
.
directory you are currently in
..
going back a directory
pwd
present working directory, displays an absolute path (full filename) to current working directory , prints the current directory
cd
change directory
mkdir
make a new directory
rmdir
removes/deletes a empty directory
rm-rf
force delete directory
mv
tranfers files/directories to a different directory, can also be used to rename files and directories
cp
copy files from one location to another
rm
can be used to delete complete files and directories
df
display the amount of free/available disk space
shows free space, file system, total size, space used, % used,mount point
du
used to estimate the file space usage, summarize disk usage for a set of files or recursively for directories
nano
easy to use command line text editor, can text what you want just like in microsoft word or any other word processing program
pico
text editor that works alot like nano, looks almost identical, originally designed to read and write emails
vi
text editor, supports modal editing, mo menu, have to know commands yourself to use them, insert mode-press i, commandline mode which is case sensitive, visual mode
vim
supports normal, visual, insert, and command line mode, improvement on vi, spell checking, autocompletion, merging, scripting languages, plugins, not installed by default
cat
used to create, view, and concatenate files, displaying contents of a file to the screen
find
search for a file, search file system of directory, does not bring you to location, must go to location yourself
grep
search for content within a file, search for characters within the specified file using regular expressions, use as a system admin to go through log files