linux overview / quiz 1 Flashcards
ls
list the directory contents
cd
change the working directory
pwd
print the name of the working directory
mkdir
create a new directory
cp
copy a file or directory
mv
move or rename a file or directory
rm
remove a file or directory
rmdir
remove an empty directory
file
determine the file type
touch
change file timestamp or create an empty file if it doesn’t exist
wc
print the number of lines, words, and characters in a file
sort
sort lines of a file numerically or alphabetically
ps
print a snapshot of current processes
top
display dynamic view of running processes
netstat
print network statistics
pstree
print a tree of processes
kill
sends a signal to terminate a process
who
display current users logged on to the system
whoami
print effective userid (actually, identify current user)
groups
print the groups that the user is in
which
used to locate the executable file associated with the given command by searching it in the path environment variable
whereis
locate the binary, source, and man page files for a command
find
search for files in a directory hierarchy