Linux Commands Flashcards
how do you ask for help in linux?
man
how do you list the directory?
ls
how can you create long output?
pipe it. ex: ls -l | more
how can you show what the current directory you’re working in is?
pwd
how do you rename a file?
mv
what is the syntax for a mv command?
mv SOURCE DESTINATION
how do you create duplicate files or directories?
cp
what is the syntax for cp command?
cp SOURCE DESTINATION
how do you remove a file?
rm if the directory is not empty is must be removed with -r
how do you change the mode of a file system object?
chmod
what is the administrator command?
sudo
how do you install or uninstall a package?
apt-get
what is an example of a command if you wanted to install a package called wireshark?
apt-get install wireshark
what is the install or uninstall command on a red hat distribution of linux?
yum
whats the command for managing the network?
ip