IT 1100 : Introduction to Operating Systems
- Basic Commands
Command |
Sample Usage |
Description |
||||||||||||||||||
ssh |
ssh smorgan@ssh.cs.dixie.edu ssh smorgan@scratch.cs.dixie.edu |
allow remote connection to other computers |
||||||||||||||||||
wget |
wget http://www.google.com/somefile.pdf |
copy a file from the internet |
||||||||||||||||||
tar |
tar -xvvf myfiles.tar |
extract the tar file. This will put all of the files in your current directory. run the ls command to see them |
||||||||||||||||||
date |
date |
shows the current date and time of the computer |
||||||||||||||||||
cal |
cal |
shows a calendar and highlights the current date |
||||||||||||||||||
exit |
exit |
logs you out and closes the terminal |
||||||||||||||||||
pwd |
pwd |
prints the working directory or prints absolute path of the current directory |
||||||||||||||||||
ls |
|
|||||||||||||||||||
tree |
tree |
display the contents of a directory and all of the subdirectories - same as ls -R |
||||||||||||||||||
cd |
|
|||||||||||||||||||
echo |
echo "Linux is Fun!" |
print to the screen. quotations are optional, but helpful |
||||||||||||||||||
less |
less myfile.txt |
display the contents of a file with the ability to navigate up and down |
||||||||||||||||||
touch |
touch newfile.txt |
create an empty file |
||||||||||||||||||
cp |
|
|||||||||||||||||||
mv |
|
|||||||||||||||||||
rm |
|
|||||||||||||||||||
mkdir |
mkdir mydirectory |
make a new directory |
||||||||||||||||||
ln |
ln -s mydirectory/myfile name-of-symlink ln -s /full/path/to/original /full/path/to/new/link |
create a symbolic link, like a shortcut to a file or directory |
||||||||||||||||||
Wildcard Characters * ? [ ] [! ] |
|
Last Updated 12/15/2017