Ever been surprised by how much disk space a package actually eats up after installation? I've been there—especially when working on systems with limited storage. That's why I've started checking install sizes for packages before pulling the trigger on both my Arch (Pacman) and Debian/Ubuntu (Apt) systems. What's really useful is seeing both the package size alone AND its total size with dependencies. It's wild how sometimes a small utility ballooons into hundreds of megabytes once you factor in everything it needs to run. This quick check has saved me from bloating my system more times than I can count, especially on development containers where every megabyte counts. It's one of those small habits that makes a big difference over time. Being mindful about what we install isn't just about disk space—it's about understanding our tools better and building more efficient systems. Sometimes the simplest commands teach us the most about our environment. If you're working with Linux, this is definitely a trick worth adding to your toolbox. https://lnkd.in/etHivNJh #Linux #Development #DevOps #SystemAdministration #FullStackDeveloper
How to check package sizes before installation on Linux
More Relevant Posts
-
Tired of your Linux system feeling slow and cluttered? 🤔 A clean machine isn't just faster—it's more secure and easier to manage. Here are a few simple commands to give your Linux environment a spring clean: 🧹 Clean package cache: Use `sudo apt-get autoclean` or `sudo dnf clean all` to remove old package files. 🗑️ Remove orphans: Run `sudo apt-get autoremove` or `sudo dnf autoremove` to uninstall dependencies that are no longer needed. 📜 Manage logs: Check `/var/log` for old log files. Use `journalctl --vacuum-time=2weeks` to clear old systemd journal logs. 🧠 Free up memory: Clear your page cache, dentries, and inodes with `sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches`. Regular maintenance keeps your system running at peak performance and prevents small issues from becoming big problems. What are your go-to commands for Linux maintenance? Share them below! 👇 #Linux #LinuxGuide #ServerManagement #SysAdmin #ITtips #ComputerTips #TechWithVelkaja #VALLUNAR #VallunarGroups #DevOps
To view or add a comment, sign in
-
-
Superblock: In every Linux filesystem (like ext4,xfs) has a Superblock, It contains complete details or metadata about that specific filesystem, its similar like "Linux inode" but here instead of storing metadata about file , Superblock store metadata about a entire filesystem. Eg:- file system metadata's: Filesystem type (ext4, xfs, etc.), total size, free and used Inodes, last mount time, and more. Without "SuperBlock" , Linux won’t know where your files are and how to interpret a file system so its very very important linux design feature to keep in your mind. If we learn something theoretically our tech mind always want to see it in practical, is n't it? lets see how can I see superblock details? sudo dumpe2fs /dev/sda1 --> this command will list all info about that file system. If the file system gets corrupted we can use this feature to restore it, even linux stores duplicate copies of superblock in different locations as backup. #DevOps #Linux
To view or add a comment, sign in
-
🐚 Under the Shell — Day 1: The Hidden Mind of the Shell Most people think the shell just “runs commands”. But the shell doesn’t run commands — The shell is the brain that interprets your commands. When you type something like: echo $HOME/*.txt Linux doesn’t see this command the way you typed it. Before sending it to the kernel, the shell secretly performs a series of transformations: 🔹 Variable expansion 🔹 Pathname expansion 🔹 Word splitting 🔹 And finally, execution Miss one step — and your command behaves completely differently. Ever wondered why echo "$HOME/*.txt" and echo $HOME/*.txt give different results? That’s shell expansion at work — the invisible logic most people never notice. And here’s another one: $(command) actually runs in a sub-shell — a new shell instance inside your current one! That’s why environment variables you set inside it don’t persist afterward. So next time you run a command, remember — the shell is not a messenger. It’s a mind that rewrites your command before Linux even sees it. #Linux #SysAdmin #DevOps #RHCSA #Bash #ShellScripting #LearningInPublic #UnderTheShell
To view or add a comment, sign in
-
Linux Tip: Copy a File to Multiple Directories in One Command. Ever needed to copy the same file to multiple locations? Here's an elegant solution using echo, xargs, and cp: echo /home/user/Videos/ /home/user/Downloads/ | xargs -n 1 cp -v /home/user/test.txt How it works: 1. echo lists your target directories. 2. xargs -n 1 processes each directory one at a time. 3. cp -v copies the file with verbose output. Why this matters: → Saves time on repetitive tasks → Perfect for deployment scripts → Cleaner than writing multiple cp commands → Easily scalable to dozens of directories Pro tip: Add more directories to the echo command to scale this to as many locations as you need! #Linux #DevOps #SysAdmin #Terminal #TechTips #Automation #Productivity
To view or add a comment, sign in
-
Linux Basics: Kernel vs. OS & Must-Know Commands Linux isn't an OS; it's the kernel. It's as the engine under the hood. Full OSes like Ubuntu or Fedora, are built on top of this kernel, adding all the user-friendly layers. So, kernel is the core program that bridges hardware and software. Now, let's take a look at basics Linux commands: ls → Lists all files in your current spot. pwd → Prints your current working directory (aka folder). cd → Changes directory (e.g., cd /home to change directory to home). mkdir → Makes a new directory (e.g., mkdir my_project). rm → Removes or delets files or directories. cp → Copies files or directories. mv → Moves or renames files/directories (e.g., mv oldname newname). touch → Creates an empty file. cat → shows the file content. head → Shows the first 10 lines of a file (add -n 5 for custom count). tail → Grabs the last 10 lines. less → Views files interactively (scroll, search—press q to quit). more → Pages through files one screen at a time. you can tryouts these commands without installing Linux VM on the your PC just head to - https://lnkd.in/gBViGDV7 #Linux #ITBasics #DevOps #CommandLine
To view or add a comment, sign in
-
🔐 Day-14: File Permissions in Linux In Linux, every file and folder has rules that decide who can open, change, or run it. These are called file permissions. Since Linux is used by many users on the same system, it’s important to make sure one user cannot change or delete someone else’s important files. 👥 Types of Users in Linux: 1. Owner (User) – The person who created the file. 2. Group – A set of users who share access to the file. 3. Others (World) – Everyone else on the system. 🔑 Types of Permissions: 1. Read (r) – View or open the file. 2. Write (w) – Edit or delete the file. 3. Execute (x) – Run the file as a program or enter a directory. 🧩 Symbolic Notation: Uses letters to represent permissions. Users: u = user, g = group, o = others, a = all Permissions: r = read, w = write, x = execute 𝗘𝘅𝗮𝗺𝗽𝗹𝗲: chmod u=rwx,g=rx,o=rx file.txt 🔢 Octal Notation: Uses numbers instead of letters. r = 4, w = 2, x = 1 Format: Owner – Group – Others 𝗘𝘅𝗮𝗺𝗽𝗹𝗲: chmod 755 file.txt ⚙️ Changing File Permissions: 1. Symbolic Method: chmod u+x file.sh chmod g-w file.txt 2. Octal Method: chmod 755 file.sh chmod 644 file.txt 3. Change Owner or Group: chown user1 file.txt chown user1:group1 file.txt chgrp group1 file.txt 𝗥𝗲𝗮𝗱 𝗳𝘂𝗹𝗹 𝗯𝗹𝗼𝗴 𝗵𝗲𝗿𝗲 👉:https://lnkd.in/d7TDkfAQ #Day14 #Linux #FilePermissions #chmod #chown #chgrp #LinuxCommands #DevOps #LearningLinux #SystemAdministration #OpenSource #LinuxBasics #ShellScripting #CommandLine #TechLearning #CloudComputing #SysAdmin #ITTraining #LearnEveryday #LinuxCommunity #Automation
To view or add a comment, sign in
-
🧑💻 Exploring the Linux File System! 🐧 Understanding the Linux file structure is one of the most important steps in mastering Linux. Every directory under / (root) has a specific purpose and plays a vital role in the system’s functionality. Here’s a quick breakdown from my learning: 📁 /bin – Essential command binaries 📂 /boot – Boot loader files ⚙ /etc – System configuration files 🏠 /home – User home directories 📡 /proc – Interface to kernel data 🧠 /usr – User system resources 🧾 /var – Variable files that keep changing Each directory teaches how Linux organizes and manages data efficiently. This visual helped me clearly understand the system hierarchy and improve my command-line navigation. 💡 🚀 Step by step, I’m deepening my knowledge of Red Hat Linux and system administration. #Linux #RedHat #SystemAdmin #LearningJourney #CommandLine #LinuxFileSystem #TechLearning
To view or add a comment, sign in
-
-
🐧 Linux terminal users, I'm delighted to introduce MyLinuxHelper - an open-source toolkit I've been working on! 🚀 I built this to solve everyday Linux workflow challenges: 🐳 Single command creates temporary isolated environments - test anything safely 🐳 Enter Docker containers instantly by name pattern - no more copying container IDs 📁 Instant directory navigation - bookmark any folder and jump back with a number or name 🔍 Fast file search across your entire project 📄 JSON validation and intelligent search 📜 Enhanced command history with timestamps One-command installation, zero configuration. Built with 293 tests for reliability. Check it out and let me know what you think! ⭐ https://lnkd.in/dmAgczP3 #Linux #OpenSource #DevTools #ShellScripting #DeveloperTools #DevOps #SysAdmin
To view or add a comment, sign in
-
-
Do you also scroll through your command history trying to remember how you set something up or to share the steps with your teammates?? Yeah… me too 😅 But I just learned a Linux trick recently that changed everything. You can record your entire terminal session with all thecommands, output and everything without installing anything. Just run “script demo.txt” Then run you commands, debug, install, setup. When you are done, type “exit” Now the whole session is saved in a single text file including the commands and their output. Perfect for debugging, writing documentation, sharing setup steps with teammates. And yes you can replay it later like a movie “scriptreplay demo.txt” Isn’t it awesome ?! Wish I knew this earlier 😭 #Linux #DevOps #SysAdmin #CommandLine #TechTips #Productivity #LinuxTips
To view or add a comment, sign in
-
Today I explored some more foundational Linux commands — this time focusing on navigating directories and creating files and folders efficiently in the terminal. Here’s what I learned 👇 🔹 pwd (Print Working Directory) Shows your current location in the system. Example: - /home/labex 🔹 cd (Change Directory) Used to move between directories. Examples: cd project/ → moves inside the project directory cd .. → moves one level up cd - → switches back to the previous directory cd ~/project/documents/ → directly navigates using the full path 🔹 mkdir (Make Directory) Creates a new folder. Example: mkdir documents 🔹 touch (Create Files) Creates one or more empty files instantly. Examples: touch report.txt notes.txt 🔹 ls -l (List with Details) Displays files and folders with permissions, ownership, and timestamps. Here’s how I practiced combining these commands — created folders like documents and drafts, added text files, and moved between directories using relative and absolute paths. Every small command adds up — learning how the filesystem works in Linux gives a solid foundation for everything that comes next. 💪 #Linux #CommandLine #LearningJourney #LinuxForBeginners #TechSkills #Terminal
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development