Linux Commands for Freshers (2026)

Which Linux commands should a fresher learn first? Start with about 25 commands in six groups: navigation (pwd, ls, cd), files and folders (mkdir, touch, cp, mv, rm, cat), permissions (chmod, chown, sudo), searching (grep, find), processes (ps, top, kill) and logs and network (tail -f, curl, ping, ss). Most servers where Java, Python and testing applications run use Linux, so these commands help in daily work and are common in fresher interviews.
This guide from VibrantMinds Technologies in Pune teaches Linux commands for freshers with real examples, a cheat sheet, permission and pipe explanations, practical scenarios for Java and testing, safety rules, interview questions and a 14-day plan. It is written for anyone searching Linux commands for freshers, basic Linux commands for beginners, Linux commands interview questions, Linux commands cheat sheet, Linux commands for developers, Linux commands for testers, chmod and file permissions in Linux, grep, find and pipe commands in Linux, Linux commands for Java and Docker or a free IT job WhatsApp group for Java and testing freshers in Pune.
Takeaway | Detail |
|---|---|
Learn by group, not by list | Navigation, files, permissions, search, processes, network and logs. |
Six commands do most of the work |
|
Pipes make commands powerful | `command1 |
Read permissions as three triplets | Owner, group and others, each with read, write and execute. |
Be careful with | Deleted files usually can’t be recovered. |
Use | Every command documents itself. |
Practise on real tasks | Read a log, kill a process, find a file, run a script. |
WHY FRESHERS NEED LINUX
Role | Where Linux shows up |
|---|---|
Java and Spring Boot developer | Running jars on servers, reading logs, checking ports and memory |
Python developer | Virtual environments, scripts, scheduled jobs |
Software tester | Reading application logs, running test scripts, checking server status |
Anyone using Docker or the cloud | Containers and cloud servers are usually Linux-based |
Support and operations roles | Troubleshooting services, files and processes |
Even if your laptop runs Windows, project servers, CI tools and containers are often Linux.
HOW TO PRACTISE SAFELY
Option | How |
|---|---|
WSL on Windows | Install Windows Subsystem for Linux and an Ubuntu distribution |
Virtual machine | Use VirtualBox with an Ubuntu image |
Docker container |
|
Dual boot or a spare machine | Only if you know how to do this safely |
Create a practice folder (mkdir ~/practice) and work inside it so you can’t damage important files.
GROUP 1: NAVIGATION
Command | What it does | Example |
|---|---|---|
| Shows the current directory |
|
| Lists files |
|
| Changes directory |
|
| Clears the screen |
|
| Shows past commands | `history |
Paths: an absolute path starts from the root (/home/user/project). A relative path starts from where you are (../logs). ~ means your home folder and . means the current folder.
GROUP 2: FILES AND FOLDERS
Command | What it does | Example |
|---|---|---|
| Creates a folder |
|
| Creates an empty file or updates its timestamp |
|
| Copies |
|
| Moves or renames |
|
| Deletes files |
|
| Deletes an empty folder |
|
| Creates a symbolic link |
|
Safety habit: run ls first to see what a pattern matches, then use rm -i to confirm each deletion. Be extremely careful with rm -rf.
GROUP 3: VIEWING AND EDITING FILES
Command | What it does | Example |
|---|---|---|
| Prints a file |
|
| Scrolls through a file (press |
|
| First lines |
|
| Last lines |
|
| Follows a file as it grows |
|
| Counts lines |
|
| Beginner-friendly editor |
|
| Powerful editor |
|
Vi basics (often asked): press i to insert text, Esc to return to command mode, :w to save, :q to quit, :wq to save and quit and :q! to quit without saving.
GROUP 4: PERMISSIONS AND USERS
Reading permissions
Permission | Letter | Number |
|---|---|---|
Read |
| 4 |
Write |
| 2 |
Execute |
| 1 |
chmod 755 explained: 7 = 4+2+1 (rwx) for the owner, 5 = 4+1 (r-x) for the group, 5 = r-x for others, so the owner can do everything and others can read and run.
Mode | Meaning | Common use |
|---|---|---|
| rwxr-xr-x | Scripts and programs |
| rw-r--r-- | Normal files |
| rw------- | Private keys (owner only) |
| Add execute for everyone | Make a script runnable |
Command | What it does |
|---|---|
| Changes owner and group |
| Runs a command with administrator rights |
| Shows the current user |
| Shows user and group IDs |
Rule: never use chmod 777 to “fix” a problem. It gives everyone full access. Find the actual permission issue instead.
GROUP 5: SEARCHING WITH GREP AND FIND
grep: search inside files
bash
find: search for files
bash
grep vs find: find locates files by name, type, size or time. grep searches inside files for text.
GROUP 6: PIPES AND REDIRECTION
Pipe |: sends the output of one command into the next.
bash
Redirection
Symbol | Meaning | Example |
|---|---|---|
| Write output to a file (overwrites) |
|
| Append output to a file |
|
| Read input from a file |
|
| Redirect errors |
|
| Redirect output and errors |
|
Warning: > overwrites the file without asking.
GROUP 7: PROCESSES AND SYSTEM INFO
Command | What it does | Example |
|---|---|---|
| Lists all running processes | `ps aux |
| Live view of CPU and memory use ( |
|
| Asks a process to stop |
|
| Forces a process to stop (last resort) |
|
| Kills by name |
|
| Lists Java processes (needs a JDK) |
|
| Disk space by file system |
|
| Folder size |
|
| Memory usage |
|
| How long the system has been up and load |
|
| System information |
|
| Checks a service |
|
Background jobs
bash
GROUP 8: NETWORK AND LOGS
Command | What it does | Example |
|---|---|---|
| Tests reachability |
|
| Sends HTTP requests |
|
| Includes response headers |
|
| Downloads a file |
|
| Shows listening ports and processes | `ss -tulnp |
| Shows what uses port 8080 |
|
| Shows IP addresses |
|
| Connects to a remote server |
|
| Copies files to or from a remote server |
|
Common log locations: /var/log/ (system logs) and your application’s own log folder or file. Use tail -f and grep to read them.
GROUP 9: ARCHIVES, DOWNLOADS AND PACKAGES
Command | What it does | Example |
|---|---|---|
| Creates a compressed archive |
|
| Extracts an archive |
|
| Zip files |
|
| Installs packages on Ubuntu or Debian |
|
| Package managers on Red Hat family systems |
|
| Shows a command’s location |
|
| Shows search paths |
|
| Sets an environment variable |
|
| Lists environment variables | `env |
GROUP 10: SHELL SCRIPT BASICS
A shell script is a text file of commands. Example: a simple backup script.
bash
Run it
bash
Concept | Example |
|---|---|
Shebang |
|
Variables |
|
Conditions |
|
Loops |
|
Exit status |
|
Scheduling |
|
PRACTICAL SCENARIOS FOR JAVA, TESTING AND DOCKER
Scenario | Commands |
|---|---|
Spring Boot fails: “Port 8080 already in use” | `ss -tulnp |
Is my Java app running? | `ps aux |
Read the latest errors | `tail -n 100 app.log |
Watch logs live during a test |
|
Find which log has a specific error |
|
Count test failures in a report |
|
Disk full causing failures |
|
Test an API quickly |
|
Run the jar in the background |
|
Check memory |
|
Inside a Docker container |
|
Make a script runnable |
|
Copy a build to a server |
|
Find big files |
|
CHEAT SHEET: 50 LINUX COMMANDS IN ONE TABLE
# | Command | Use |
|---|---|---|
1 |
| Current directory |
2 |
| List all files with details |
3 |
| Change directory |
4 |
| Create folders |
5 |
| Create a file |
6 |
| Copy |
7 |
| Move or rename |
8 |
| Delete with confirmation |
9 |
| Print a file |
10 |
| Scroll a file |
11 |
| First lines |
12 |
| Last lines |
13 |
| Follow a log |
14 |
| Count lines |
15 |
| Edit files |
16 |
| Change permissions |
17 |
| Change owner |
18 |
| Run as admin |
19 |
| Current user |
20 |
| User and groups |
21 |
| Search text |
22 |
| Search a folder |
23 |
| Search files |
24 |
| Sort lines |
25 |
| Count duplicates |
26 | ` | ` (pipe) |
27 |
| Redirect output |
28 |
| Print text |
29 |
| List processes |
30 |
| Live resource view |
31 |
| Stop a process |
32 |
| Java processes |
33 |
| Run in background |
34 |
| Disk space |
35 |
| Folder size |
36 |
| Memory |
37 |
| Load and uptime |
38 |
| System info |
39 |
| Test connection |
40 |
| HTTP requests |
41 |
| Download |
42 |
| Listening ports |
43 |
| Who uses a port |
44 |
| Remote login |
45 |
| Remote copy |
46 |
| Archive and extract |
47 |
| Command location |
48 |
| Environment variables |
49 |
| Schedule jobs |
50 |
| Built-in documentation |
SAFETY RULES EVERY FRESHER SHOULD FOLLOW
Rule | Why |
|---|---|
Check where you are ( | Deleting in the wrong folder is a common disaster |
Never run | Deleted files usually can’t be recovered |
Read a command before running it from the internet | It may do more than you expect |
Avoid | Mistakes with admin rights are costly |
Don’t use | It opens files to everyone |
Back up before editing configuration files |
|
Use | Lets the process clean up |
Never paste passwords or keys into shared terminals or logs | Security risk |
Test scripts in a practice folder first | Avoids damage to real data |
LINUX INTERVIEW QUESTIONS FOR FRESHERS
Question | Short answer |
|---|---|
What is Linux? | An open-source, Unix-like operating system kernel, used in many distributions and widely on servers. |
What is the difference between |
|
What does | Owner can read, write and execute. Group and others can read and execute. |
What is the difference between |
|
What is a pipe? | ` |
How do you find a file by name? |
|
How do you search text in files? |
|
How do you check running processes? |
|
How do you kill a process? |
|
How do you check disk and memory? |
|
How do you find which process uses a port? | `ss -tulnp |
What is | Runs a command with another user’s privileges, usually root. |
Absolute vs relative path? | Absolute starts from |
How do you watch a log file live? |
|
What is a symbolic link? | A pointer to another file or folder, created with |
How do you run a script? | Make it executable with |
What is | A scheduler for running commands at set times. |
What is | A list of folders the shell searches for commands. |
Hard link vs soft link? | A hard link is another name for the same data. A soft link is a path that points to a file. |
How do you exit |
|
COMMON MISTAKES FRESHERS MAKE WITH LINUX
Mistake | Result | Fix |
|---|---|---|
Memorising commands without practice | Forgets them in the interview | Use them on real tasks daily |
Using | Data loss | Check with |
| Security risk | Give only needed permissions |
Not reading error messages | Repeated failures | The message usually tells you what’s wrong |
Forgetting | Permission errors or accidents | Understand ownership first |
Spaces in file names | Commands break | Quote names: |
Overwriting with | Lost content | Use |
Not using | Slower learning | Read the built-in help |
Editing live config without a backup | Hard to recover | Copy it first |
Ignoring case sensitivity |
| Match names exactly |
14-DAY LINUX PRACTICE PLAN
Day | Focus | Task |
|---|---|---|
1 | Setup | Install WSL, a VM or use a Docker Ubuntu shell. Practise |
2 | Files and folders |
|
3 | Viewing files |
|
4 |
| Create, edit, save and quit files in |
5 | Permissions | Read |
6 |
| Search a sample log with 5 different |
7 |
| Find files by name, type, size and time |
8 | Pipes and redirection | Build 5 pipelines, such as top repeated errors in a log |
9 | Processes |
|
10 | System info |
|
11 | Network |
|
12 | Scripting | Write the backup script and run it, then schedule it with |
13 | Project practice | Run your Spring Boot jar on Linux, read its logs, test it with |
14 | Interview practice | Answer the interview table aloud and use the cheat sheet without looking |
MYTH VS REALITY
Myth | Reality |
|---|---|
“Linux is only for system administrators.” | Developers, testers and data professionals use it too. |
“I must memorise hundreds of commands.” | About 50 cover most fresher needs, and |
“The terminal is dangerous.” | It’s safe with care and a practice folder. |
“Windows users can’t learn Linux.” | WSL, VMs and Docker make it easy. |
“Scripting needs advanced skills.” | Simple scripts with variables and |
“Linux knowledge isn’t asked of freshers.” | Basic Linux questions are common in technical, testing and support rounds. |
HOW VIBRANTMINDS HELPS FRESHERS BUILD PRACTICAL IT SKILLS
VibrantMinds Technologies Pvt. Ltd. is a Pune-based IT training and placement support company. If you searched for VibrantMinds or VibrantMinds Technologies, here is what it offers:
Full Stack Java Development (about 4 to 6 months): Core Java, OOP, JDBC, SQL, Spring Boot, REST APIs, front-end basics, projects, aptitude and interview preparation. Please check the candidate portal for the latest syllabus and tools, including which tools such as Linux, Git and Docker are covered.
Software Testing (Manual + Automation), Core Java and Python & Data Science for other career paths
Project practice: Build projects you can host on GitHub, run and explain confidently
Interview preparation: Technical rounds, project rounds, HR rounds, aptitude, communication and mock interviews
Placement support: Screening, drive coordination and interview support. Check https://candidates.vibrantminds.in/ for current openings.
Free WhatsApp job alert groups for fresher IT jobs, campus drives and walk-in alerts
Honesty first: VibrantMinds offers placement support, not a guaranteed job, and no legitimate recruiter should ask you to pay to be interviewed.
VibrantMinds works as a talent ecosystem connecting candidates, colleges and companies, with 1900+ partner colleges and 600+ hiring companies. More fresher job guidance: https://candidates.vibrantminds.in/blog/fresher-jobs-pune-2026
VIBRANTMINDS COURSES AT A GLANCE
Course | Duration | Key topics |
|---|---|---|
Full Stack Java Development | 4 to 6 months | Core Java, OOP, JDBC, SQL, Spring Boot, REST APIs, front-end basics, projects, aptitude and interview preparation |
Software Testing (Manual + Automation) | 2 to 5 months | Test cases, STLC, bug tracking, SQL, Selenium basics |
Core Java | 1 to 2 months | Syntax, OOP, collections, exceptions, strings |
Python & Data Science | 2 to 4 months | Python basics, data handling, analysis fundamentals |
Fees, syllabus and batch dates are on https://candidates.vibrantminds.in/. Please confirm them directly before enrolling.
THE VIBRANTMINDS PLACEMENT PIPELINE: SIX STEPS
REAL OUTCOMES: WHAT TO EXPECT AND WHAT NOT TO
Past students have shared positive feedback about the training and support, and have gone on to roles at companies such as Aress Software and Education Technologies, Saama Technologies and Three M Software. Results vary by candidate, skill level, effort and market conditions, so please confirm details directly with the VibrantMinds team. No one can honestly promise a guaranteed job.
JOIN FREE VIBRANTMINDS WHATSAPP GROUPS: FREE IT JOB UPDATES FOR JAVA AND TESTING FRESHERS IN PUNE AND INDIA
Looking for free WhatsApp groups, free IT job WhatsApp groups, a Java WhatsApp group for freshers or a job updates WhatsApp group in India? The VibrantMinds groups share fresher IT openings, campus drives, walk-in interview alerts and interview preparation updates, free of charge. Join whichever group has space. All three carry the same type of updates.
Group | What it offers | Link |
|---|---|---|
VibrantMinds Fresher IT Jobs, Group 1 | Fresher openings, campus drives, walk-in alerts | |
VibrantMinds Fresher IT Jobs, Group 2 | Fresher openings, campus drives, walk-in alerts | |
VibrantMinds Fresher IT Jobs, Group 3 | Fresher openings, campus drives, walk-in alerts |
Never pay to apply. Legitimate recruiters do not charge candidates for tests, interviews or offer letters. Do not share sensitive personal or financial details in any group chat.
FREQUENTLY ASKED QUESTIONS
1. Which Linux commands should freshers learn first?
Start with navigation (pwd, ls, cd), file handling (mkdir, touch, cp, mv, rm, cat), permissions (chmod, chown, sudo), searching (grep, find), processes (ps, top, kill) and logs and network (tail -f, curl, ping, ss). About 25 commands cover most daily tasks and interview questions.
2. What does chmod 755 mean in Linux for beginners?
Each digit is a sum of read (4), write (2) and execute (1). The first digit is the owner, the second is the group and the third is everyone else. 755 means the owner has read, write and execute (7), and group and others have read and execute (5). It is common for scripts and programs.
3. How do I check which process is using a port in Linux?
Run ss -tulnp | grep 8080 or lsof -i :8080 to see the process ID using port 8080. If you need to free the port, stop that process with kill <PID>, and use kill -9 <PID> only if it doesn’t stop.
4. How do I read log files in Linux using tail and grep?
Use tail -n 100 app.log to see the last 100 lines, tail -f app.log to follow new lines live and grep -i "error" app.log to find errors. Combine them with a pipe, for example tail -n 500 app.log | grep -i error.
5. Is there a free WhatsApp group for Java and testing freshers in Pune?
Yes. VibrantMinds runs free fresher IT job WhatsApp groups that share Java, testing and other IT openings, campus drives and walk-in alerts. Join through the links above, and always verify a job post and never pay to apply.
CONCLUSION: PRACTISE ON REAL TASKS, NOT JUST LISTS
The fastest way to learn Linux commands for freshers is to use them on real tasks: run your Spring Boot app, read its logs, check a port, kill a process, fix a permission and write a small script. Learn the commands by group, remember the safety rules, use the cheat sheet and follow the 14-day plan. Being comfortable in a terminal is a small skill that makes you look and work like a professional.
If you’re in Pune and want structured Java, testing or Python training with real project practice, interview preparation and placement support, VibrantMinds Technologies is here to help.
Call to action:
Website: https://vibrantminds.in/
Candidate portal and courses: https://candidates.vibrantminds.in/
Fresher jobs guide: https://candidates.vibrantminds.in/blog/fresher-jobs-pune-2026
Join the free WhatsApp groups: the three links above
VISIT OR CONTACT VIBRANTMINDS IN PUNE
Company: VibrantMinds Technologies Pvt. Ltd.
Address: Viva Academy Building, Warje, Pune, Maharashtra 411052
Phone: +91 95035 79517
Email: support@vibrantmindstech.com
Website: https://vibrantminds.in/
Candidate portal and courses: https://candidates.vibrantminds.in/


