#Story_2 Locate & Copy! – How Alice Retrieved the Missing File👇🏾 It’s Friday afternoon, and 👩💻 Alice is about to leave the office. Before she goes, she has one last task: She must connect to a Linux server (terminal only) and find a file called report.xlsx. The tricky part? She forgot where it is. Once found, she needs to copy it to her laptop into the Documents folder, because she’ll be working remotely on Monday. Here’s how she solves it step by step: #Linux #SSH #Terminal #SysAdmin #DevOps #Programming #Productivity #RemoteWork #FileManagement #TechTips
How to find and copy a file on a Linux server using SSH and terminal.
More Relevant Posts
-
**🐧 Linux Unlocked: First Step Inside! 🐧** Ever wondered what makes Linux tick? Let's break it down! 🤔 💡 **The Kernel**: The ultimate boss! It's the core program with complete control over your entire system. 💬 **The Shell**: Your translator! This interface takes your human commands and turns them into instructions the kernel understands. ⚡ **Shell Scripting**: Your superpower! Write scripts to automate tasks and become a system wizard! 🧙♂️ **Start with these 5 commands:** - `pwd` - See where you are 🗺️ - `ls` - Peek inside folders 📂 - `cd` - Navigate around 🚶♂️ - `cp/mv` - Copy & move files 📝 - `rm` - Clean up 🗑️ i have just taken my first step into a powerful new world! 🚀 #Linux #DevOps #TechBasics #CommandLine #LearningToCode checkout - https://lnkd.in/dt4pQT42
To view or add a comment, sign in
-
-
Demystifying the Linux Filesystem Ever get lost between /bin, /etc, and /var? This visual map breaks down the core directories, from essential binaries in /bin to user files in /home. A must-know for every developer and sysadmin. Save this post for your next deep dive! Understanding the Linux filesystem hierarchy is fundamental for effective system administration and development work. #Linux #DevOps #SysAdmin #Filesystem #Tech #Programming
To view or add a comment, sign in
-
-
How to Use Bash read Command: 10 Essential Examples 🐚 If you're writing shell scripts on Linux, mastering the read command is a game changer. This guide breaks down how read makes scripts interactive, flexible, and robust: 💬 Capture user input with ease | pause execution and store responses 🔄 Read into multiple variables | split input across fields 📝 Use -p for inline prompts | cleaner, more concise scripts 🔒 Hide sensitive input with -s | great for passwords & secrets ⏱️ Apply timeouts via -t | scripts don’t wait forever 🔢 Limit characters using -n | enforce input formats 📂 Read from files | loop through lines reliably ➕ Define custom delimiters with -d | parse unusual formats 🌀 Handle multiline input via -r & loops | great for blocks of text ⚠️ Check exit codes & errors | gracefully respond to failures Whether building tools, automations, or admin scripts, these variants of read will help your Bash scripts feel smarter and more user-friendly. Read the full guide → https://lnkd.in/e82tSgai #Bash #ShellScripting #Linux #DevOps #Automation #ProgrammingTips #CLI #Scripting #TechGuide #Voxfor
To view or add a comment, sign in
-
-
🚀 How Linux fork() Works Under the Hood (and with Multiple Threads) If you’ve ever written a C program that calls fork(), you know it’s one of the most fascinating system calls in Linux — it duplicates a process! But what actually happens behind the scenes when you call fork()? Let’s dig a little deeper 👇 🧠 Under the Hood: When a process calls fork(), the Linux kernel creates a new task_struct (process descriptor) for the child. Instead of physically copying all the memory pages, the kernel uses a clever optimization — Copy-On-Write (COW). That means: The parent and child initially share the same physical memory pages. Pages are only copied when either process tries to modify them. This makes fork() surprisingly efficient. Behind the scenes, the kernel function do_fork() (or kernel_clone() in modern kernels) is responsible for: Allocating a new task_struct for the child. Duplicating the parent’s memory mappings (marked read-only). Cloning file descriptors, signal handlers, and other process metadata. Returning two values: 0 to the child process Child PID to the parent process 🧵 What Happens with Multiple Threads? Here’s where it gets interesting. If a multithreaded process calls fork(), only the calling thread is duplicated in the child process. The other threads disappear! That’s why POSIX strongly recommends calling fork() in multi-threaded programs only when followed by exec(), to safely replace the process image. Otherwise, the child process ends up in an inconsistent state — shared locks, mutexes, or library states may be half-copied, leading to undefined behavior. ⚙️ In Short: fork() duplicates a process using copy-on-write memory. The kernel efficiently shares pages until one process writes. In multi-threaded programs, only the calling thread survives in the child. 💡 Pro tip: If you want process-level parallelism in a multi-threaded program, consider using posix_spawn() or separate worker processes it’s safer and more predictable. #Linux #SystemProgramming #OperatingSystems #CProgramming #KernelInternals #Fork #Threads
To view or add a comment, sign in
-
-
For anyone exploring Linux/Unix systems, understanding the file system hierarchy is a must. Here’s a quick reference: /bin → User Binaries /sbin → System Binaries /etc → Config Files /dev → Device Files /proc → Process Files /var → Variable Files /tmp → Temp Files /usr → User Programs /home → User Home Directory /boot → Boot Files /lib → System Libraries /opt → Optional Apps /mnt → Mount Directory /media → Removable Devices /srv → Service Data A clear map for admins, developers, and Linux learners to navigate like a pro! 🚀 #Linux #OpenSource #SysAdmin #DevOps #Learning
To view or add a comment, sign in
-
-
🐧 𝗟𝗶𝗻𝘂𝘅 𝗟𝗲𝗮𝗿𝗻𝗶𝗻𝗴 𝗦𝗲𝗿𝗶𝗲𝘀 – 𝗠𝗮𝘀𝘁𝗲𝗿𝗶𝗻𝗴 𝗖𝗼𝗺𝗺𝗼𝗻 𝗟𝗶𝗻𝘂𝘅 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀 When learning Linux, the command line can feel intimidating at first. But once you start practising, you realise it’s incredibly powerful. Here are some of the commands I’ve been using daily: ✅ ls – lists files and directories ✅ cd – changes directory ✅ mkdir – creates a new directory ✅ touch – creates an empty file ✅ rm – removes a file or directory ✅ cp – copies files ✅ mv – moves or renames files Each command can be customised with options and arguments. For example: ls -la lists all files (including hidden ones) in long format. The more you use them, the more natural it feels. These small building blocks are the start of mastering the terminal. #CoderCo #Linux #DevOps #LearningJourney #CommandLine #TechGrowth
To view or add a comment, sign in
-
-
Just finished reading "The Linux Commands Handbook" by Flavio Copes – an absolute gem for anyone diving into the world of Linux and command-line mastery! This concise guide follows the 80/20 rule: learn 20% of the essentials to handle 80% of your daily tasks. It skips the fluff and zeros in on the core commands you'll actually use 80-90% of the time, like ls, cd, pwd, mkdir, grep, chmod, ps, top, sudo, and dozens more – from file navigation and manipulation to process management, permissions, networking, and environment variables. Perfect for beginners getting comfortable with shells (Bash, Zsh, Fish, etc.) or pros needing a quick refresher. It works seamlessly across Linux, macOS, WSL, and any UNIX-like setup, with practical examples, screenshots, and tips on using tools like man pages and tldr for deeper dives. Flavio, a daily programming tutorial wizard at flaviocopes.com (follow him on X @flaviocopes), makes complex concepts simple and empowering. If you're building servers, scripting, or just exploring open-source freedom, this 133-page handbook is your fast track to confidence. Grab it free from his site and level up your skills today! Who's your go-to Linux command? Share below. #Linux #CommandLine #OpenSource #TechLearning #Programming
To view or add a comment, sign in
-
🌟 𝑳𝒊𝒏𝒖𝒙 𝐄𝐬𝐬𝐞𝐧𝐭𝐢𝐚𝐥 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 (𝐏𝐚𝐫𝐭 ①) 🖥️🐧 ✨ Whether you’re a beginner or a daily Linux user — these are the commands that make your terminal life easier, cleaner, and smarter ⚡ 🧠 Covers: 🔹 𝐓𝐞𝐫𝐦𝐢𝐧𝐚𝐥 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 — clear, reset 🔹 𝐇𝐢𝐬𝐭𝐨𝐫𝐲 & 𝐑𝐞𝐮𝐬𝐞 — history, grep 🔹 𝐓𝐚𝐛 𝐂𝐨𝐦𝐩𝐥𝐞𝐭𝐢𝐨𝐧 — faster navigation 🧭 🔹 𝐀𝐥𝐢𝐚𝐬𝐞𝐬 — temporary & permanent ⚙️ 🔹 𝐂𝐮𝐫𝐬𝐨𝐫 𝐌𝐨𝐯𝐞𝐦𝐞𝐧𝐭 — use Ctrl & Alt combos 🚀 🔹 𝐑𝐞𝐝𝐢𝐫𝐞𝐜𝐭𝐢𝐨𝐧 — >, >>, <, 2> 🔹 𝐂𝐨𝐦𝐦𝐚𝐧𝐝 𝐒𝐲𝐧𝐭𝐚𝐱 — man, --help, tldr, cheat.sh 📘 💡 Each command is easy to remember and works across most Linux distros. 📚 Perfect for creating your own terminal shortcuts and mastering command-line navigation. 🧩 Stay tuned for Part ② – diving deeper into process management, permissions, and regular expressions ! #🐧 #linux #terminal #commandline #opensource #techlearning #sysadmin #linixtips #devops #practicallinux #engineerlife #unix #ubuntu #debian #kali #kalilinux #cli #bash #fish #zsh #shell
To view or add a comment, sign in
-
-
💻 Arcane Linux Commands: What's in Your Toolkit? 🛠️ I absolutely love the depth of Linux. Every year, I run a fun internal challenge for my team: write a single string of commands that maximizes shell usage to transfigure a piece of data. It's a great way to see what obscure tricks people pull out! Speaking of obscurity... What are three arcane Linux commands you still use on the regular? The commands that people often forget about or don't know exist, but which are essential to your workflow? I'll go first: {screen} (The ultimate terminal multiplexer) {script} (For command-line session logging){apropos} (The forgotten {man} page search) Drop your three favorites below and let's see how deep your shell skills go! 👇 #Linux #DevOps #SysAdmin #Commandline #Terminal #OpenSource #TechChallenge #Coding #ShellScripting #Tech
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