ls - list everything in current dirrectory
cd directoryname - change directory to given directory
cp directorynameofcopied directorynamewheretocopy - copes a file or folder
mv directoryoffiletobemoved directrynameofdestinationtomove - moves a file
pwd - print current location
touch filename - create a file
cat > filename - createa a file name and write into it
| - pipe command, lets you combine commandsLinux Commands (Case Sensitive):
pwd ==> print the name of current directory || Ex: pwd
cd [directoryName] ==> enter a directory || Ex: cd Music
cd .. ==> go back to the parent directory || Ex: cd ..
ls ==> list all items in the current folder || Ex: ls
clear ==> clears the terminal || Ex: clear
mkdir [name] ==> make a folder || Ex: mkdir Songs
echo "text" ==> print the specified text || Ex: echo "Hi"
whoami ==> print the current user || Ex: whoami
man [command] ==> show the manual of the command || Ex: ls man
reboot ==> reboot the system || Ex: reboot
[command] --help ==> similar to man but prints in terminal || Ex: pwd --help
users ==> prints the current logged in user || Ex: users
adduser ==> adds another user || Ex: adduser David
deluser ==> deletes a user || Ex: deluser David
ifconfig ==> prints the details about your network || Ex: ifconfigLinux Commands (case-sensitive)
reboot ==> reboots system
man ==> gives you instruction of the command - Ex:
"man reboot"
mikdir ==> Creates directory(folder)
cd ==> Change directory
Ls ==> List directory content
pwd ==> Print name of the current working directory. It
gives you the exact location; Ex: /home/Andy/Desktop
ll ==> Long list format
ls-la ==> Prints files and hidden file
clear ==> Clear screen
cd.. ==> Goes to the parent file (not the root file)
cd/ ==> Goes to the parent root file
cd~ ==> Goes to the home of the user file
grep ==> Prints a line matching a pattern
df-h ==> Prints the disk space usage top ==> Displays
linux tasks (like task manager)
ls ls - Lists files in current directory
ls -alF - List in long format
cd - change directory
cd tempdir - Change directory to tempdir
cd.. - Move back one directory
mkdir - Make a directory
rmdir - Remove directory(Must be empty)
cp - Copy File into Directory
rm - Remove or Delete File
rm *.tmp - Remove all file
mv - Move or rename files
more - Look at file, one page at a time
lpr - Send file to printer
man - Online help about command
passwd - Change password
gzip - Compress file
grep<str><files> - Find which files contain certain word
who - Lists who is logged on your machine
history - Lists command history
date - Print out current date
whoami - returns your username
pwd - tell where currently you are
For renaming file:
mv filename newfilenameTo remove a directory (file), use the command -
rmdir directoryname