Linux Flashcards
(24 cards)
mv
move a file or directory
rv
remove a file or directory
rmdir
remove a directory
mkdir
make a new directory
history
show command history
What can you type if command unknown
–help
How to view directory
ls -l or sudo ls -l /root
Reset the password to the “root” account
sudo passwd root
how do you add users
sudo useradd (fred)
what does su do?
switch users
what is sudo?
activate all abilities (root)
how to change password on user account
su root
sudo passwd fred
Create a new file with
sudo vi newfile
use : wq to save file
move file example
sudo cp newfile /root
sudo mv newfile /root
installing apache
sudo apt-get install apache2
sudo vi mypage.html
sudo is?
execute a single command with root privileges
what does ls do
list the content of a directory
what does cd do?
change my current location to a different directory
cat?
show the contents of a file
Pwd
Print working directory- where you are currently located
Cd
Used for navigatuon btw directories and folders
How do you move around in file system
cd Download. Go back with
cd ..
cd /-to the root
cp
Copy file
Eg: cp test testcopy
Copy into new folder
cp test /home/jaimie/Downloads