Close Menu
Luminari | Learn Docker, Kubernetes, AI, Tech & Interview PrepLuminari | Learn Docker, Kubernetes, AI, Tech & Interview Prep
  • Home
  • Technology
    • Docker
    • Kubernetes
    • AI
    • Cybersecurity
    • Blockchain
    • Linux
    • Python
    • Tech Update
    • Interview Preparation
    • Internet
  • Entertainment
    • Movies
    • TV Shows
    • Anime
    • Cricket
What's Hot

Films Addressing Oct. 7 Aftermath Win Berlin Jewish Film Festival

May 9, 2025

Yūsha Party o Tsuihō Sareta Shiro Madōshi Anime Adds 2 More Cast – News

May 9, 2025

CoreWeave reportedly looks to raise $1.5B in debt as IPO disappoints

May 9, 2025
Facebook X (Twitter) Instagram
Facebook X (Twitter) Instagram
Luminari | Learn Docker, Kubernetes, AI, Tech & Interview Prep
  • Home
  • Technology
    • Docker
    • Kubernetes
    • AI
    • Cybersecurity
    • Blockchain
    • Linux
    • Python
    • Tech Update
    • Interview Preparation
    • Internet
  • Entertainment
    • Movies
    • TV Shows
    • Anime
    • Cricket
Luminari | Learn Docker, Kubernetes, AI, Tech & Interview PrepLuminari | Learn Docker, Kubernetes, AI, Tech & Interview Prep
Home » Linux Interview questions and preparation – part 2 (Linux commands)
Misc

Linux Interview questions and preparation – part 2 (Linux commands)

HarishBy HarishJuly 8, 2024No Comments2 Mins Read
Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Email
Share
Facebook Twitter Pinterest Reddit WhatsApp Email

Table of contents
  • Basic commands

  • File System Management Commands

  • User Management Commands

  • System Management Commands

  • Network Management Commands

  • Advanced Admin Commands

Before diving into more advanced topics, let’s cover some essential basic admin commands:

Basic commands:

cd: Change Directory – Use cd to navigate through your file system.

“cd /path/to/directory”

mkdir: Make Directory – Create a new directory using mkdir.

“mkdir my_new_directory”

rm: Remove – Delete files or directories using rm.

“rm myfile.txt”

cp: Copy – Copy files or directories using cp.

“cp myfile.txt my_copy.txt”

mv: Move – Rename or move files or directories using mv.

“mv myfile.txt my_new_name.txt”

File System Management Commands

ls: List Files and Directories – Display the contents of a directory.

“ls /path/to/directory”

cat: Concatenate and Append Text Files – View or create files using cat.

“cat myfile.txt”

touch: Create Empty Files – Create new empty files using touch.

“touch my_new_file.txt”

find: Search for Files and Directories – Search for files and directories based on specific criteria.

“find /path/to/directory -name myfile.txt”

du: Display Disk Usage – Show the size of a file or directory.

“du -h my_directory”

User Management Commands

useradd: Add Users – Create new users using useradd.

“useradd my_new_user”

usermod: Modify Users – Change user properties using usermod.

“usermod -aG wheel my_existing_user”

userdel: Delete Users – Remove existing users using userdel.

“userdel my_existing_user”

System Management Commands

uptime: Show System Uptime – Display how long the system has been running.

“uptime”

top: Display Running Processes – Show a list of currently running processes.

“top”

kill: Kill Processes – Terminate a process using kill.

“kill 1234”

reboot: Reboot the System – Restart the system immediately.

“reboot”

Network Management Commands

ping: Send ICMP Echo Request Packets – Test network connectivity using ping.

“ping google.com“

ssh: Secure Shell – Connect to another Linux system or server using ssh.

“ssh my_remote_server”

scp: Secure Copy – Copy files securely between systems using scp.

“scp myfile.txt my_remote_server:~/my_directory/”

Advanced Admin Commands

cron: Schedule Tasks – Run commands at specific times or intervals.

“crontab -e”

sudo: Superuser Do – Execute a command with superuser privileges using sudo.

“sudo apt-get install my_package”

chown: Change Ownership of Files and Directories – Modify file ownership using chown.

“chown my_user:my_group my_file.txt”

chmod: Change Mode of Files and Directories – Modify file permissions using chmod.

“chmod 755 my_directory”

Top^

<<Linux Interview questions and preparation – part 1

How operating system boots >>

Share. Facebook Twitter Pinterest LinkedIn WhatsApp Reddit Email
Previous ArticleLearn Docker for free : Docker architecture
Next Article Linux Interview questions – part 3 (How operating system boots)
Harish
  • Website
  • X (Twitter)

Related Posts

We’ve entered an era of fintech maximalism according to Mark Goldberg

April 16, 2025

Apple says zero-day bugs exploited against ‘specific targeted individuals’ using iOS

April 16, 2025

India’s Uber-rival BluSmart appears to suspend service in wake of EV loan probe

April 16, 2025

Bluesky feed builder Graze raises $1M, rolls out ads

April 16, 2025

Kia is pitching Americans an affordable EV sedan with EV4 debut

April 16, 2025

NSO lawyer names Mexico, Saudi Arabia, and Uzbekistan as spyware customers accused of 2019 WhatsApp hacks

April 16, 2025
Add A Comment
Leave A Reply Cancel Reply

Our Picks

Films Addressing Oct. 7 Aftermath Win Berlin Jewish Film Festival

May 9, 2025

Yūsha Party o Tsuihō Sareta Shiro Madōshi Anime Adds 2 More Cast – News

May 9, 2025

CoreWeave reportedly looks to raise $1.5B in debt as IPO disappoints

May 9, 2025

2025 Detective Conan Film Stays at #1, Tabekko Dōbutsu Film Opens at #5 – News

May 9, 2025
Don't Miss
Blockchain

Blockchain innovation illuminates Dubai — Token2049 event recap

May 9, 20254 Mins Read

The Dubai edition of Token2049, held for the second time this year, brought the pulse…

Cointelegraph Bitcoin & Ethereum Blockchain News

May 9, 2025

Solana lacks ‘convincing signs’ of besting Ethereum: Sygnum

May 9, 2025

AI decentralized apps are coming for the Web3 throne: DappRadar

May 9, 2025

Subscribe to Updates

Subscribe to our newsletter and never miss our latest news

Subscribe my Newsletter for New Posts & tips Let's stay updated!

About Us
About Us

Welcome to Luminari, your go-to hub for mastering modern tech and staying ahead in the digital world.

At Luminari, we’re passionate about breaking down complex technologies and delivering insights that matter. Whether you’re a developer, tech enthusiast, job seeker, or lifelong learner, our mission is to equip you with the tools and knowledge you need to thrive in today’s fast-moving tech landscape.

Our Picks

CoreWeave reportedly looks to raise $1.5B in debt as IPO disappoints

May 9, 2025

This is your last chance to exhibit at TechCrunch Sessions: AI — don’t miss out

May 9, 2025

Microsoft employees are banned from using DeepSeek app, president says 

May 8, 2025

Subscribe to Updates

Subscribe to our newsletter and never miss our latest news

Subscribe my Newsletter for New Posts & tips Let's stay updated!

Facebook X (Twitter) Instagram Pinterest
  • Home
  • About Us
  • Advertise With Us
  • Contact Us
  • DMCA Policy
  • Privacy Policy
  • Terms & Conditions
© 2025 luminari. Designed by luminari.

Type above and press Enter to search. Press Esc to cancel.