No video

Linux Crash Course - Symbolic Links

  Рет қаралды 59,986

Learn Linux TV

Learn Linux TV

3 жыл бұрын

In this episode of Linux Crash Course, we take a look at symbolic links, aka "symlinks" aka "soft links". In addition, a brief discussion on inodes is featured, as well as the difference between soft links and hard links.
LearnLinuxTV Links
🐧 Main site:
➡️ www.learnlinux.tv
🐧 LearnLinuxTV Community:
➡️ community.learnlinux.tv
Support LearnLinuxTV (commission earned)
📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
➡️ ubuntuserverbook.com
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.link/patron
☁️ Support LearnLinuxTV and Set up your own cloud server with Akamai Connected Cloud!
➡️ learnlinux.link/akamai
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.link/amazon
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.link/tinypilot
About Me
🐦 Follow me on Twitter!
➡️ learnlinux.link/twitter
👨 More about me:
➡️ www.jaylacroix.com
➡️ www.learnlinux.tv/about-me
Recommended evergreen videos:
💽 How to create a bootable flash drive for installing Linux
➡️ linux.video/flash-usb
🐧 Understanding Linux permissions
➡️ linux.video/perms
🐧 OpenSSH Guide
➡️ linux.video/ssh
📖 LVM Deep-dive:
➡️ linux.video/lvm
🔐 How to better secure OpenSSH:
➡️ linux.video/secure-ssh
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.link/create-linode
📘 FAQ
• What is a "Distribution" of Linux? ➜ linux.video/what-is-a-distro
• What is a "Desktop Environment"? ➜ linux.video/desktop-environment
• Which Linux Distro should I use on my Server? ➜ linux.video/which-server-distro
• How do I create USB install media? ➜ linux.video/install-media
• How do I create multi-boot USB media? ➜ linux.video/ventoy
• How do I connect to a Linux server via SSH? ➜ linux.video/use-ssh
• How do I exit vim? ➜ linux.video/vim
• How do I use APT? ➜ linux.video/apt
• How do I use DNF? ➜ linux.video/dnf
• How do I use pacman? ➜ linux.video/pacman
• How do I use zypper? ➜ linux.video/zypper
• What the heck is a "Flatpak"? ➜ linux.video/flatpak
• What is a "Snap" package? ➜ linux.video/snap
• How do I install Arch Linux? ➜ linux.video/install-arch
• How do I configure SSH on my server? linux.video/ssh-server
• How do I install updates? ➜ linux.video/updates
• What server tweaks should I implement? ➜ linux.video/every-server
• How do I use LVM? ➜ linux.video/lvm
• How do I use Git? ➜ linux.video/git
• When will the "Year of the Linux Desktop" Happen? ➜ linux.video/yotld
• Do you have a sense of humor? ➜ linux.video/lol
#LinuxEssentials #symlink #CLI

Пікірлер: 84
@larrywilliams8010
@larrywilliams8010 3 жыл бұрын
I've been a Linux user full time since 2004, dabbled in Linux (and Unix) since the early 90s, and only now do I haver a clearer understanding of inodes and links. Thank you.
@spruce-bogey
@spruce-bogey 3 жыл бұрын
Hard links can indeed be copied or moved to other media just like any other file (18:06). But a hard link cannot _reference_ a file outside of the file system that it's on. Every file is a hard link. When a file is created, there is one hard link to that file. Additional hard links can be created, basically giving additional names to the same file. The second field returned by the *ls -l* command (after the permission string) gives the number of hard links to a file. The file content is not removed until the last hard link to a file is removed.
@Sveto8
@Sveto8 3 жыл бұрын
that is true
@oscargm1979
@oscargm1979 3 жыл бұрын
I don't think it is the number of hard links,is the ID of the Inode,just an ID(do a ls --help: -i, --inode print the index number of each file) .
@strifef7
@strifef7 3 жыл бұрын
I love the piece by piece explanations Jay!!! Keep up the great Linux content!
@MrLopez-kz8zl
@MrLopez-kz8zl 3 жыл бұрын
Thanks Jay, now I understand clearly the relationship between nodes and soft links and hard links even I seldom used it.
@juliettetworsey3060
@juliettetworsey3060 2 жыл бұрын
Thank you Jay for this awesome tutorial on symbolic links!
@chrits3396
@chrits3396 9 ай бұрын
Thanks for the detailed video tutorial. I am currently studying for RHSA and needed details.
@kelsangsherab131
@kelsangsherab131 2 жыл бұрын
Many thanx. I couldn't understand why the symlink where not working. Put the complete path and it now does.thank you. Your videos are informative and well explained.
@attutorials2121
@attutorials2121 2 жыл бұрын
Great tutorial! I did not even notice how these 30 minutes passed!
@name1355_0ne
@name1355_0ne 3 жыл бұрын
Thanks for the thorough explanation!
@garethsutcliffe5680
@garethsutcliffe5680 2 жыл бұрын
Superb video, as always. You've been a massive help to me delving into Linux. On a different note, the colours in the video seem a bit washed out, not noticed that on your other videos.
@reveng6705
@reveng6705 Жыл бұрын
dude.. the information I get from your videos is INVALUABLE!! Thank you very much for your great work!
@ChristianPadilla-zz3hs
@ChristianPadilla-zz3hs 10 ай бұрын
can't believe this is free out here. Thanks for the great explanation.
@chicotebelsonda5507
@chicotebelsonda5507 2 жыл бұрын
Thank you for the thorough tutorial.
@udayarpandey3937
@udayarpandey3937 2 жыл бұрын
Very clear and precise.
@techofe-anopensourcebasedd5822
@techofe-anopensourcebasedd5822 3 жыл бұрын
Great, thanks J.
@ShrirajHegde
@ShrirajHegde 3 жыл бұрын
DING (desktop icons NG) allows drag drop support
@Eimantasks
@Eimantasks 2 жыл бұрын
This was amazing!!!
@greenfairy1034
@greenfairy1034 9 ай бұрын
Thankyou for this video. I have subscribed and liked. I am in college for cybersecurity and am taking Linix Admin class and this video has helped me very much.
@srsr6099
@srsr6099 3 жыл бұрын
Amazing work Jay any light on root file & shadow file would be greatly appreciated
@ropperish
@ropperish 2 жыл бұрын
Your crontributions to the comunity are so huge Jay!! Thank you very much. There should be a Linux distro named after you. Jaynux!! 🤣
@paulmacgiollacaoine8619
@paulmacgiollacaoine8619 3 жыл бұрын
Nicely done sir 👍
@baberali95
@baberali95 2 жыл бұрын
very nice and easy to understand thanx
@def__luisAM95__
@def__luisAM95__ 11 ай бұрын
Thank you very much sir. Very clearly.
@BenMitro
@BenMitro 3 жыл бұрын
That was great Jay. What then is the value of a hard link? Did I miss this?
@h2o40fpv
@h2o40fpv Жыл бұрын
I don't know why but i believe everything this two person describe. Great video thank u.
@kennis942
@kennis942 3 жыл бұрын
first, also keep up the good work! just what i need
@hillybill
@hillybill 3 жыл бұрын
I love your videos
@send2gl
@send2gl 2 жыл бұрын
I shall have to look into using them more, I have a partitioned drive with three Linux distros (and Windows but never use it), my main Ubuntu system plus two others. Handy to have a link to main Home directory when using my secondary systems but found the link initially worked then broke. Not sure why, I probably altered something maybe. Shall look in to it deeper as you said symbolic links can span file systems.
@BrucesWorldofStuff
@BrucesWorldofStuff 3 жыл бұрын
Symlinks are very useful like you stated. Also true don't go nuts with them... One good use case is a script that is not in your path but you want to use it, so a symlink works well for that. I do that on several files on my desktop that are link to files on my server master document folder, that works well from all my desktops... :-) I also symlinked a few directories on my server which are on another drive in the server... They work great, just don't make a sym of a sym that will muck up the works... LOL Thanks for the video! LLAP
@736939
@736939 3 жыл бұрын
YOU ARE THE BEST!!!
@SabinCheruvattil
@SabinCheruvattil 3 жыл бұрын
Great effort, thanks. It will be better to have `stat FILE` also.
@Hailfire2455
@Hailfire2455 Жыл бұрын
Thank You Sir.!!!
@chbihmrabih9666
@chbihmrabih9666 Жыл бұрын
Love u man🤝
@markganus1085
@markganus1085 4 ай бұрын
Die meisten Prozesse, die im Allgemeinen Nachrichten über ein Netzwerk empfangen, sind für diesen speziellen Zweck konzipiert. Diese Prozesse werden auch Daemons genannt.
@pistolerointergalactico9019
@pistolerointergalactico9019 8 ай бұрын
Thank you
@Jure1234567
@Jure1234567 Жыл бұрын
You can track hard links by LS table column with hard links count
@agustinluengo3323
@agustinluengo3323 Жыл бұрын
Thanks
@mason8714
@mason8714 2 жыл бұрын
Just a quick question - I understand why you would use soft links for "shortcuts for example" but can someone explain to me a scenario where you would use hard links in a server enviroment for example? thanks for this am taking the lpic essentials exam soon and kept failing on the test questions on symbolic links. you have explained it perfectly!
@unbekannter_Nutzer
@unbekannter_Nutzer 2 жыл бұрын
If you need the same content on different locations, and don't want the data to be duplicated on disk, because it is huge, then you might use a hardlink. For that reason you might use a symlink as well, but a symlink is more appropriate, if there is a definitive autoritative place for the file. For example, you might have a symlink chain "java" -> "java-18" -> "java18.3" and another one "java19"-> "java19.01" where java19 is an unstable branch, you use for experimenting. With a simple command you may change the symlink "java" from "java18" to "java19" and back, and when an update occurs, you use "java18.4" as new target for java18 and java19.2 as new target for java19, but for compiliation, you always use "java/bin/javac" which then points to most recent version while you might still keep the older version, if the new one reveals some serious bugs. But if you have 2 links a/hugefile and b/hugefile, and they will expire idependently, and you don't know ahead of time, which will expire first, you may delete them in any order before the disk space is freed, because there is a counter at the inode, which counts the number of hardlinks to the file, and only if it is zero, the file is really wiped from disk.
@rmcellig
@rmcellig 3 ай бұрын
Excellent video!! Thanks Jay!! I have a folder that contains sub folders. The sub folders contain audio files. I want to create links to these files and have them in a specific folder. How do I do this? A video would be great.
@xrafter
@xrafter 2 жыл бұрын
You forget to tell that the second field of ls is the number of links/hardlinks of a file.
@nsxlai2000
@nsxlai2000 3 жыл бұрын
For hard link, how can you tell which is the source file since they all shared the same inode number? Or it doesn’t matter because every hard link file is the same?
@zymagoras
@zymagoras 3 жыл бұрын
It doesn't matter, they're all referencing to the same data location on your partition table. You could check when each file was created I suppose but it doesn't really matter, as long as you have at least one hard link to that data location.
@pju28
@pju28 Жыл бұрын
Is it possible to change the icon Grafik too?
@kentw.england2305
@kentw.england2305 2 жыл бұрын
How do the permissions interact?
@skeeveskeeve
@skeeveskeeve 3 жыл бұрын
does anyone know how to create a link to a wine program that has spaces in the name?
@classactionsteve
@classactionsteve 2 жыл бұрын
Could this kind of error be tied to symlinks? no such file or directory /usr/local/
@agr-tech
@agr-tech 3 жыл бұрын
how do you know a file is a hard link? looks like a normal file
@Jure1234567
@Jure1234567 Жыл бұрын
Windows symbolic links have working directory parameter, how to do it on Linux?
@sanatdhobi5418
@sanatdhobi5418 2 жыл бұрын
I have question that how can I know that given symbolic link is cyclic or not through command or code?
@stevefiorito5379
@stevefiorito5379 2 ай бұрын
Are Custom Folder icons symlinks or hard links? If neither, what are they?
@Swanicorn
@Swanicorn 3 жыл бұрын
Have you addressed why you are not on LBRY/Odysee? You can automate the whole process including copying the description from YT.
@slinkyapex8150
@slinkyapex8150 Жыл бұрын
i got a question i created a simbolic link in my subdirectory but is red but in my home directory is light blue how do i change my link to light blue
@debeeriz
@debeeriz 3 жыл бұрын
l moved my downloads, movies and music directories from my ssd to a spinning drive and used symlinks, if l had used hard links would that mean the same directories would exist on both drives and l would not save space on my ssd
@xrafter
@xrafter 2 жыл бұрын
Good question
@raheelmasood8656
@raheelmasood8656 6 ай бұрын
Please start a VMWare series
@82732726
@82732726 2 жыл бұрын
I hope this request for assistance does not sound confusing. User1 and User2 are using Win10, and the file server is a Samba Serveron Ubuntu 18.04. My question is related to permissions. I am trying to create a symbolic link to a TEST folder with subfolders from User1 directory to User2 directory. Example: User1 has a folder called TEST that contains many sub-folders. I am trying to create a symbolic link of the TEST folder for User2 to access User1 and User2 are in a group called assistant. I added the assistant group with rw- to the TEST folder using ACL. When I create a Symbolic Link of the TEST folder in one of the User2 directories, User2 is not seeing the TEST folder. The symbolic link and this content are accessible from the Ubuntu command line, but it is not accessible to me in Windows even as an administrator. I do not know what I am doing wrong, and I would appreciate your help greatly.
@jatinsw1128
@jatinsw1128 2 жыл бұрын
Can there be a link to a link? And isn’t hard link copy paste?
@ScreenPrintR
@ScreenPrintR 2 жыл бұрын
I’m sorry what is the name of your book? Maybe other books too?
@subtitles1492
@subtitles1492 2 жыл бұрын
3:33
@arvindersingh9863
@arvindersingh9863 3 жыл бұрын
What is the difference between rm and truncate command?
@xrafter
@xrafter 2 жыл бұрын
rm removes a file Truncate truncate a file in other words reduce its size
@tomdaichendt9013
@tomdaichendt9013 2 жыл бұрын
truncate does not have a m
@MonchoDeLaMota
@MonchoDeLaMota Жыл бұрын
Yeah I’m really gonna become a country ass patreon subscriber
@pankajkharade6936
@pankajkharade6936 3 жыл бұрын
👍👍👍👍
@DrSougataBanerjee
@DrSougataBanerjee 2 жыл бұрын
I am confused about one thing - if a hard link is simply a duplicate object, then why shouldn't I use cp (copy command)?!? I am a dumb linux noob.
@mehmetdemir-lf2vm
@mehmetdemir-lf2vm 3 жыл бұрын
there is not a "hard link". there is "the same file located in different directories and/or with different names".
@mason8714
@mason8714 2 жыл бұрын
if its the same file in 2 different places, if you edit one file will it edit the second file the same?
@BC-ml1mo
@BC-ml1mo 2 жыл бұрын
@@mason8714 yes - if it's hard-linked
@lsatenstein
@lsatenstein 10 ай бұрын
You look better without the beard
@user-jf7zz4fv5
@user-jf7zz4fv5 Жыл бұрын
เรียน ชาวพุทธ ขอพวกท่านใจเย็นๆและทบทวนข้อความที่ข้าพเจ้า เขียน ว่าจริงหรือเท็จ? 1 สมมติว่า มีการเวียนว่ายตายเกิด อัลเลาะห์จะให้ใครเกิด ผู้นั้นก็ต้องเกิด ยังไงคนที่อ้างว่าตนเองนิพพานแล้วนั้นก็ต้องเกิดอีก 2 สมมติว่า มีนิพพาน พวกเทวดาก็ควรจะนิพพานก่อนมนุษย์ เพราะพวกเขามีคุณธรรม มีศีลธรรมมากกว่ามนุษย์ ๓ เป็นแค่มนุษย์ควรรู้จักที่ต่ำที่สูง แค่นั่งสมาธิได้ แล้วมาอวดเก่ง อวดดี ยกตนว่าดีเลิศประเสริฐสุด ว่าตนเองดีเลิศกว่าเทวดานั้น มันไม่สมควรเลย ๔ เมื่อไม่อยากเกิด ไม่อยากมีตัวตน ณ ที่แห่งใดเลย เมื่อรับโทษในนรกหมดแล้ว อัลเลาะห์ก็จะให้ผู้นั้นไม่มีตัวตนก็ได้ ไม่จำเป็นต้องนิพพาน ๕ แต่ถ้าให้เรา มีตัวตนแบบเทวดา มีสุขนิัรันดร นั่นมันไม่ดีกว่านิพพานหรือ? ๖ แท้จริงนิพพานคือฝันลมแล้งๆมโนขึ้นเองของคนอินเดียชื่อ นาย สิทธัตถะ ๗ ผู้ที่ให้เกิดให้ตายคืออัลเลาะห์พระผู้สูงสุด พระผู้ควบคุมสรรพสิ่ง ๘ อัลเลาะห์คือ พระผู้เป็นเจ้าของเราที่แท้จริง เราอย่าตั้งผู้ใดในหมู่มนุษย์ขึ้นเทียบเคียง
@Spiritualitydefined
@Spiritualitydefined 3 жыл бұрын
I have a game in wine and wont it on desktop, sorry noob at it.
@motoryzen
@motoryzen 3 жыл бұрын
Symbolic links = useless to me. They never work... Never.
@Neater_profile
@Neater_profile 3 жыл бұрын
Fifth.
@AdvaTced
@AdvaTced 11 ай бұрын
you just wasted 4 minutes of our time for those advertises... not cool
Building a 10-Node Kubernetes Cluster on Raspberry Pi & Ubuntu Server
1:22:59
Linux Crash Course - Understanding File & Directory Permissions
35:48
Learn Linux TV
Рет қаралды 112 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 33 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 83 МЛН
What it feels like cleaning up after a toddler.
00:40
Daniel LaBelle
Рет қаралды 79 МЛН
Content Creation gear ACTUALLY worth the investment
4:15
Austin Rayfield
Рет қаралды 6
SymLinks: The Hidden "SUPER Shortcut" Feature in Windows
14:23
MicroNuggets: Hard Links versus Soft Links Explained
7:03
CBT Nuggets
Рет қаралды 65 М.
Linux Command-Line Tips & Tricks: Over 15 Examples!
31:37
Learn Linux TV
Рет қаралды 214 М.
Awk: Hack the planet['s text]! (Presentation) - 2023 Update
1:07:40
Benjamin Porter
Рет қаралды 18 М.
Linux Crash Course - The find command
25:56
Learn Linux TV
Рет қаралды 82 М.
Linux Crash Course -  Managing Users
32:59
Learn Linux TV
Рет қаралды 100 М.
How Does Linux Boot Process Work?
4:44
ByteByteGo
Рет қаралды 585 М.
The Linux Filesystem Explained | How Each Directory is Used
14:08
Akamai Developer
Рет қаралды 224 М.
Symbolic Links in Linux | Use SymLinks for Anything
8:19
Chris Titus Tech
Рет қаралды 89 М.
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН