Yintoni ifayile yekhonkco engumfuziselo kwiLinux?

Ikhonkco elingumfuziselo, elikwabizwa ngokuba likhonkco elithambileyo, luhlobo olukhethekileyo lwefayile olukhomba kwenye ifayile, kufana nendlela emfutshane kwiWindows okanye iMacintosh alias. Ngokungafaniyo nekhonkco elinzima, ikhonkco elingumfuziselo alinayo idatha kwifayile ekujoliswe kuyo. Isalatha ngokulula kolunye ungeno kwindawo ethile kwindlela yefayile.

Ikhonkco lokomfuziselo into yenkqubo yefayile ekhomba enye into yenkqubo yefayile. Into ekubhekiselwa kuyo ibizwa ngokuba yithagethi. Amakhonkco omfuziselo ayabonakala kubasebenzisi; amakhonkco avela njengeefayile eziqhelekileyo okanye abalawuli, kwaye banokwenziwa ngumsebenzisi okanye isicelo ngendlela efanayo kanye.

Ku ukudala a isiqhagamshelo, use the -s ( —mfuziselo ) option. If both the FILE and LINK are given, ln ngeke ukudala a ikhonkco from the file specified as the first argument ( FILE ) to the file specified as the second argument ( LINK ).

Ukwenza ikhonkco lokomfuziselo dlulisela i -s ukhetho kumyalelo we-ln olandelwa yifayile ekujoliswe kuyo kunye negama lekhonkco. Kulo mzekelo ulandelayo ifayile iqhagamshelwe kwifolda yomgqomo. Kulo mzekelo ulandelayo i-drive yangaphandle enyusiweyo idityaniswa kulawulo lwasekhaya.

A soft link (also called symlink or symbolic link) is a file system entry that points to the file name and location. … Deleting the symbolic link does not remove the original file. If, however, the file to which the soft link points is removed, the soft link stops working, it is broken.

Amakhonkco omfuziselo isetyenziswe lonke ixesha ukudibanisa iilayibrari kwaye uqinisekise ukuba iifayile zikwindawo ezihambelanayo ngaphandle kokushukuma okanye ukukopa imvelaphi. Amakhonkco ahlala esetyenziselwa "ukugcina" iikopi ezininzi zefayile efanayo kwiindawo ezahlukeneyo kodwa zibhekisa kwifayile enye.

Ukujonga amakhonkco omfuziselo kuluhlu:

  1. Vula i-terminal kwaye uye kulo vimba weefayili.
  2. Chwetheza umyalelo: ls -la. Oku kuya kudwelisa ixesha elide zonke iifayile kulawulo nokuba zifihliwe.
  3. Iifayile eziqala ngo l ziifayile zakho zekhonkco ezingumfuziselo.

Simplest way: cd to where the symbolic link is located and do ls -l to list the details of the files. The part to the right of -> after the symbolic link is the destination to which it is pointing.

Umyalelo we-ln kwi-Linux yenza amakhonkco phakathi kweefayile zemvelaphi kunye nabalawuli.

  1. -s – umyalelo woQhagamshelwano lweSimboli.
  2. [ifayile ekujoliswe kuyo] – igama lefayile ekhoyo oyenzela ikhonkco.
  3. [Igama lefayile engumfuziselo] – igama lekhonkco lokomfuziselo.

Replace source_file with the name of the existing file for which you want to create the symbolic link (this file can be any existing file or directory across the file systems). Replace myfile with the name of the symbolic link. The ln command then creates the symbolic link.

Isizathu sokuba abalawuli badityaniswe nzima ayivumelekanga bubugcisa obuncinci. Ngokusisiseko, bophula ulwakhiwo lwesixokelelwano sefayile. Akufanele usebenzise amakhonkco anzima kunjalo. Amakhonkco emiqondiso avumela uninzi lomsebenzi ofanayo ngaphandle kokubangela iingxaki (umzekelo ln -s ikhonkco ekujoliswe kulo ).

Uyayithanda le post? Nceda wabelane nabahlobo bakho:
OS Namhlanje