Watch these three videos mentioned below to get introduced to the Linux basics by learning how to use fundamentally these important commands.
This video covers these topics:
- Video Overview
- Task 1: Introduction
- Task 2: A Bit of Background on Linux
- Task 3: Interacting with Your First Linux Machine (In-Browser)
- Task 4: Running Your First Few Commands
- Task 5: Interacting with the Filesystem!
- Task 6: Searching for Files
- Task 7: An Introduction to Shell Operators
- Task 8: Conclusions & Summaries
This video covers these topics:
- Video Overview
- Task 1: Introduction
- Task 2: Accessing Your Linux Machine Using SSH (Deploy)
- Task 3: Introduction to Flags and Switches
- Task 4: Filesystem Interaction Continued
- Task 5: Permissions 101
- Task 6: Common Directories
- Task 7: Conclusions & Summaries
This video covers these topics:
- Video Overview
- Task 1: Introduction
- Task 2: Deploy Your Linux Machine
- Task 3: Terminal Text Editors
- Task 4: General/Useful Utilities
- Task 5: Processes 101
- Task 6: Maintaining Your System: Automation
- Task 7: Maintaining Your System: Package Management
- Task 8: Maintaining Your System: Logs
- Task 9: Conclusions & Summaries
These are some of the basic commands used in day to day Linux tasks.
ls: Lists all files and directories in the present working directory
ls -R: Lists files in sub-directories as well
ls -a: Lists hidden files as well
ls -al: Lists files and directories with detailed information like permissions,size, owner, etc.
cd or cd ~: Navigate to HOME directory
cd ..: Move one level down
cd: To change to a particular directory
cd /: Move to the root directory
cat > filename: Creates a new file
cat filename: Displays the file content
cat file1 file2 > file3: Joins two files (file1, file2) and stores the output in a new file (file3)
mv file "new file path": Moves the files to the new location
mv filename new_file_name: Renames the file to a new filename
sudo: Allows regular users to run programs with the security privileges of the superuser or root
rm filename: Deletes a file
man: Gives help information on a command
history: Gives a list of all past commands typed in the current terminal session
clear: Clears the terminal
mkdir directoryname: Creates a new directory in the present working directory or a at the specified path
rmdir: Deletes a directory
mv: Renames a directory
apt-get: Command used to install and update packages