Ever wondered why some commands use - and others use -- in your terminal? I used to type them without thinking, until I realized they actually mean completely different things 👇 Single dash (-) Used for short flags:- usually one letter. ls -l -a # or just ls -la Each letter represents a separate flag. Quick and old-school. Double dash (--) Used for long-form options, usually full words. npm install --global nodemon git commit --message "Initial commit" Way more readable, especially for scripts or tools you’ll revisit later. Double dash alone (--) This one’s a quiet hero. It means: Stop reading flags; everything after this is a normal argument.” "rm -- -file.txt" Without it, your command might think -file.txt is a flag and crash. I love these small details, they seem minor, but understanding them makes you faster and sharper at the CLI. #DevTips #CommandLine #NodeJS #Linux #Programming #CLI #DeveloperInsights
Understanding the difference between - and -- in terminal commands
More Relevant Posts
-
Ever wondered why some commands use - and others use -- in your terminal? I used to type them without thinking, until I realized they actually mean completely different things 👇 Single dash (-) Used for short flags:- usually one letter. ls -l -a # or just ls -la Each letter represents a separate flag. Quick and old-school. Double dash (--) Used for long-form options, usually full words. npm install --global nodemon git commit --message "Initial commit" Way more readable, especially for scripts or tools you’ll revisit later. Double dash alone (--) This one’s a quiet hero. It means: Stop reading flags; everything after this is a normal argument.” "rm -- -file.txt" Without it, your command might think -file.txt is a flag and crash. I love these small details, they seem minor, but understanding them makes you faster and sharper at the CLI. #DevTips #CommandLine #NodeJS #Linux #Programming #CLI #DeveloperInsights
To view or add a comment, sign in
-
🐳Docker Series — Part 2 : Understanding Images & Containers 🔹 Docker Image A Docker image is a read-only, versioned package containing: - OS base (like Ubuntu, Alpine, CentOS) - Application runtime (Node, Python, Java, etc.) - App code - Config files & libraries Example: nginx:latest → latest version of Nginx web server image. 🔹 Docker Container A container is a lightweight, isolated process running from an image. It’s ephemeral — you can create, start, stop, move, or delete it easily. Analogy: 🧬 Image = Class ⚙️ Container = Object 💻 Basic Commands # List all images docker images # Run a container from image docker run -it ubuntu bash # List running containers docker ps # Stop and remove container docker stop <id> && docker rm <id> 💡 Pro Tip: Use lightweight base images like alpine for smaller, faster builds. #Docker #DevOps #Containers #DockerImages #DockerContainers #CloudComputing #Containerization #DockerBasics #LearnDocker #DevOpsCommunity #CloudNative #Microservices #Automation #Linux #InfrastructureAsCode
To view or add a comment, sign in
-
I am really enjoying having two frameworks that allow to extend Kubernetes, Operator SDK ( via Kubebuilder ) in golang and Java Operator SDK aka JOSDK ( with #GraalVM support as first class citizen ). Local cluster's setup for e2e builds is also something interesting, you could say; kind, kindest and kubebuilder are your friends, but this list goes beyond it. Fabric8 Kubernetes Client, within JOSDK, has also this great support of starting Kubernetes server using its unit tests API. Having another options like: k3s, k3d, microk8s and lesser known k0s and Microshift to have fully running single node Kubernetes in a minute, is also great for integration tests. If you are running via github runners, official runners are mostly Ubuntu based, official Ubuntu's microk8s is really easy to install via snap and used for testing, e.g. RWX volume access.
To view or add a comment, sign in
-
Imagine creating an open source project worth $3M That's the value of Recommenders. According to the Linux Foundation. Here's the value of other open source projects: - NumPy: $24M. - React: $26M. - Angular: $26M. - Git: $28M. - Spring (Java): $36M. - Python: $88M. - Golang: $109M. - VSCode: $90M. - Keras: $7.6M. - PyTorch: $121M. - TensorFlow: $197M. - The Linux Kernel: $1.4B 😎 - Kubernetes: $5.8B 😮 The value is calculated using the Constructive Cost Model (COCOMO). Open source is changing the world! Join us!
To view or add a comment, sign in
-
-
Excited to announce a game-changing addition to Flash - a lightweight, terminal-based alternative to Postman and CURL for Mac & Linux! The problem: You test an API in the terminal, it works great. Now you need to implement it in your app. You either: - Rewrite the request from scratch - Copy curl commands and convert them manually - Switch to Postman and recreate everything The solution: One-click code generation! ✨ Flash now generates ready-to-use code snippets in: → Python (requests) → Node.js (fetch/axios) → Go (net/http) → C# (HttpClient) → And more coming soon! Test your API, get the code, ship faster. That's it. 🙏 Huge shoutout to: - Abhishek Verma for suggesting this feature - And Everyone who's supported this project 🔗 GitHub: https://lnkd.in/dWaJpaGW 📹 Demo video attached (i have some cough 😅 ) Building in public, learning in public. If you're working on similar tools or have ideas for Flash, let's connect! #BuildInPublic #OpenSource #DevTools #HighSchoolDev #CLI #APITesting ```
To view or add a comment, sign in
-
The Git source-code management system is a foundational tool upon which much of the free-software community is based. For many people, Git simply works, though perhaps in quirky ways, so the activity of its development community may not often appear on their radar. There is a lot happening in the Git world at the moment, though, as the project works toward a 3.0 release sometime in 2026. Topics of interest in the Git community include the SHA-256 transition, the introduction of code written in Rust, and how the project should view contributions created with the assistance of large language models. #Git #Linux #OpenSource https://lnkd.in/g6s79h27
To view or add a comment, sign in
-
🛠️ 𝗜 𝘀𝗼𝗹𝘃𝗲𝗱 𝘁𝗵𝗲 "𝘁𝗼𝗼 𝗺𝗮𝗻𝘆 𝗩𝗦 𝗖𝗼𝗱𝗲 𝗲𝘅𝘁𝗲𝗻𝘀𝗶𝗼𝗻𝘀" 𝗽𝗿𝗼𝗯𝗹𝗲𝗺 Ever had VS Code cluttered with extensions that slow everything down, but you only need them for specific projects? I had extensions for Python, Java, Web, Docker... All active at the same time even when I didn't need them. So I created an open-source tool that generates VS Code profiles automatically: one text file per tech stack, run a script, and you get separate profiles with only the extensions you need for that project. Result? • Fast and clean VS Code • Each profile with only what you need • Easy to share with your team • Works on Windows, Mac, and Linux If you're also tired of having 50 extensions active when you only need 10, check it out! P.S.: I'd love if someone could test the Bash version (Linux/Mac) - I haven't had the chance to try it myself yet! 🙏 🔗 https://lnkd.in/djqnA6e4 #VSCode #DevTools #OpenSource #Productivity
To view or add a comment, sign in
-
CMake: The Comprehensive Guide to Managing and Building C++ Projects (From Basics to Mastery) ( 597 Pages ) PDF Format. Download : https://lnkd.in/dGKE5Tuz One of the most challenging aspects of C++ programming is the compilation process. Unlike many modern languages that come with built-in package managers and streamlined build systems, C++ requires developers to have a deep understanding of compilation, linking, dependency management, and platform-specific configurations. This complexity often discourages students and even experienced developers, leading them to abandon C++ in favor of languages with simpler build processes. However, while C++ may have a steep learning curve in this regard, mastering the right tools can dramatically improve the development experience and unlock the full potential of the language. This is where CMake comes in. CMake is not just another build system; it is a powerful meta-build tool that simplifies and standardizes the configuration, compilation, and linking processes across multiple platforms and compilers. In large-scale projects, particularly those targeting multiple operating systems (Windows, macOS, Linux) or architectures (x86, ARM, embedded systems), managing build files manually can be overwhelming. CMake provides an elegant solution by allowing developers to define their build processes in a platform-independent manner, generating appropriate build scripts for a variety of compilers and environments. Many C++ programmers hesitate to learn CMake, thinking of it as an additional layer of complexity rather than a solution. However, once you understand its workflow, CMake becomes an indispensable tool that simplifies project setup, dependency management, and integration with external libraries. Whether you are working on small projects or large-scale software systems, using CMake can save you countless hours of manual configuration and troubleshooting. In this book, I will guide you through the fundamentals of CMake, from basic setup to advanced configurations. You will learn how to efficiently manage source files, handle third-party dependencies, optimize compilation settings, and create robust cross-platform builds. By the end of this journey, you will have a solid grasp of CMake, allowing you to focus more on writing great C++ code rather than struggling with build issues. I strongly encourage every C++ developer to invest time in mastering CMake. It is not just a tool—it is an essential skill that will make your C++ development process more efficient, scalable, and enjoyable.
To view or add a comment, sign in
-
-
🚀 Just came across this excellent CMake guide from Ayman Alheraki — a great resource for anyone looking to modernize their C++ build systems and streamline project configuration. It got me thinking about AXIS ACAP development (https://lnkd.in/gDQds3xN I’m curious: 👉 Do you still use Make for your complex ACAP projects, or have you switched to CMake (or something else)? Would love to hear what’s working best for you — especially when it comes to build reproducibility and cross-compilation. 💡 #CMake #Make #ACAP #FPGA #EmbeddedSystems #BuildSystems #Cplusplus
Senior Compiler & Toolchain Engineer | Low-Level Systems Architect | Technical Author (Assembly/C/C++/Rust)
CMake: The Comprehensive Guide to Managing and Building C++ Projects (From Basics to Mastery) ( 597 Pages ) PDF Format. Download : https://lnkd.in/dGKE5Tuz One of the most challenging aspects of C++ programming is the compilation process. Unlike many modern languages that come with built-in package managers and streamlined build systems, C++ requires developers to have a deep understanding of compilation, linking, dependency management, and platform-specific configurations. This complexity often discourages students and even experienced developers, leading them to abandon C++ in favor of languages with simpler build processes. However, while C++ may have a steep learning curve in this regard, mastering the right tools can dramatically improve the development experience and unlock the full potential of the language. This is where CMake comes in. CMake is not just another build system; it is a powerful meta-build tool that simplifies and standardizes the configuration, compilation, and linking processes across multiple platforms and compilers. In large-scale projects, particularly those targeting multiple operating systems (Windows, macOS, Linux) or architectures (x86, ARM, embedded systems), managing build files manually can be overwhelming. CMake provides an elegant solution by allowing developers to define their build processes in a platform-independent manner, generating appropriate build scripts for a variety of compilers and environments. Many C++ programmers hesitate to learn CMake, thinking of it as an additional layer of complexity rather than a solution. However, once you understand its workflow, CMake becomes an indispensable tool that simplifies project setup, dependency management, and integration with external libraries. Whether you are working on small projects or large-scale software systems, using CMake can save you countless hours of manual configuration and troubleshooting. In this book, I will guide you through the fundamentals of CMake, from basic setup to advanced configurations. You will learn how to efficiently manage source files, handle third-party dependencies, optimize compilation settings, and create robust cross-platform builds. By the end of this journey, you will have a solid grasp of CMake, allowing you to focus more on writing great C++ code rather than struggling with build issues. I strongly encourage every C++ developer to invest time in mastering CMake. It is not just a tool—it is an essential skill that will make your C++ development process more efficient, scalable, and enjoyable.
To view or add a comment, sign in
-
-
🚀 𝐥𝐢𝐬𝐭-𝐬𝐢𝐳𝐞 v3.1.0 ✨ : From a simple “𝐥𝐬 + 𝐝𝐮 -𝐬𝐡” idea to a full-fledged CLI utility. A few weeks back, I was bouncing around the terminal, trying to check which folders were eating up space. Like most of us, I ran the usual combo: --- $ ls && du -sh * And I thought — why isn’t there a single elegant command that just does this properly? One single command that will list the contents of the folder as well as show their disk usage beside them! So, I built one. ✨ Introducing 𝐥𝐢𝐬𝐭-𝐬𝐢𝐳𝐞 — a Spring Shell–based CLI tool that lists your files and folders with sizes, filters, sorting, summaries & much more, all in one command. No more messy outputs or chained commands. Just clean, readable, structured info. 🧰 Features : ✅ Filter by size, depth, or file type ✅ Tree view and JSON output ✅ Smart sorting (ascending / descending) ✅ Clean error handling and summaries ✅ Optional colorized or raw output ✅ Built entirely in Java 21 + Spring Boot 3.5.7 ✅ And yes, friendly error messages — no Java stack-traces 😉 --- 💻 Run it like this: --- $ cd ~/Projects --- $ start-list-size --- $ shell:> list-size --descending --folders-only --summary --- 📦 Fully portable | Works on Linux, macOS, and WSL 👨💻 Author: Souradip Patra 🔗 Github : https://lnkd.in/gusVJwjF 📥 Download from the Releases section in the repository and follow the README for installation guide. --- #SpringBoot #Spring #JavaDeveloper #Java #OpenSource #DevTools #CLI #Linux #Ubuntu #Productivity #DeveloperTools #SoftwareDeveloper
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