Remote Operation Reference
Remote Operation Reference
Dollar sign ($) in the command prompt means that you are in a user shell.
What directory am I in right now?
pwdMake me a new directory right here:
mkdir mydirectoryMove into that new directory that I just made:
cd mydirectoryShow me what is in this directory:
lsShow me more information about what is in this directory:
ls -lahMake a new blank file with this name:
touch myfileOutput this on the command line:
echo "Hello, world!"Put that thing that I just said into the file I made before:
echo "Hello, world!" > myfilePut this other thing that I want to say into the same file on a new line:
echo "This is another line." >> myfileShow me what is in that file:
cat myfilePut this thing I want to say into a totally new file:
echo "This is a third line." > myfile2Put the stuff in this new file on a new line in my old file:
cat myfile2 >> myfileMake a backup copy of that file:
cp myfile myfile.bckRename the old file to a new thing:
mv myfile mynewfileRemove that other file that I created:
rm myfile2Become a SUPERUSER:
sudo COMMANDBecome the ROOT user:
sudo suSearch for this software package:
apt-cache search nanoInstall that software package (text editor):
sudo apt-get install nanoInstall a different editor:
sudo apt-get install vimInstall yet another text editor:
sudo apt-get install emacs23Open my file in that editor:
nano mynewfile