Potso: U etsa joang sehokelo sa tšoantšetso lipakeng tsa li-directory tse peli ho Linux?

Ho theha sehokelo sa tšoantšetso fetisa khetho ea -s ho taelo ea ln e lateloang ke faele e shebiloeng le lebitso la sehokelo. Mohlaleng o latelang faele e hokahantsoe le foldara ea bin. Mohlaleng o latelang koloi ea kantle e kentsoeng e hokahantsoe le bukana ea lapeng.

Ho theha sehokelo sa tšoantšetso, sebelisa khetho ea -s ( -symbolic).. Haeba ka bobeli FILE le LINK li fanoe, ln e tla theha sehokelo ho tsoa faeleng e boletsoeng e le khang ea pele ( FILE ) ho faele e boletsoeng e le khang ea bobeli ( LINK ).

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.

To create a symbolic link in Nautilus, press and hold the Ctrl and Shift keys on your keyboard. Drag and drop a file or folder to another location. Nautilus will create a symbolic link to the original file or folder at the location you drop the file or folder rather than moving the original file or folder.

Ho sheba lihokelo tsa tšoantšetso bukeng:

  1. Bula terminal ebe u fallela bukeng eo.
  2. Ngola taelo: ls -la. Sena se tla thathamisa nako e telele lifaele tsohle tse bukeng le haeba li patiloe.
  3. Lifaele tse qalang ka l ke lifaele tsa hau tsa lihokelo tsa tšoantšetso.

Kenyelletsa e le 'ngoe " ” e feto-fetoha, e e hlalosang e le tsela e felletseng ea bukana eo u e batlang. Sistimi e tla theha sehokelo sa tšoantšetso se sebelisa boleng bo hlalosoang e le " ” feto-fetohang. Ho thehoa ha symlink ho boleloa 'me khetho ea -s e sebelisoa ka ho sa feleng. …

Lebaka leo ka lona li-directory tse hokahanyang ka thata ke ha ea lumelloa ke botekgeniki hanyane. Ha e le hantle, ba senya sebopeho sa sistimi ea faele. Ka kakaretso ha ua lokela ho sebelisa lihokelo tse thata leha ho le joalo. Lihokelo tsa matšoao li lumella boholo ba ts'ebetso e ts'oanang ntle le ho baka mathata (mohlala ln -s target link ).

Sehokelo se thata ke faele e supang ntho e tšoanang ea motheo, joalo ka faele e 'ngoe. Haeba u hlakola faele e le 'ngoe, e tlosa sehokelo se le seng ho inode e ka tlase. Athe sehokelo sa tšoantšetso (se tsejoang hape e le sehokelo se bonolo) ke sehokelo sa lebitso le leng la faele tsamaisong ea lifaele.

Mokhoa o bonolo: cd moo sehokelo sa tšoantšetso se leng teng 'me u etse ls -l ho thathamisa lintlha ea lifaele. Karolo e ka letsohong le letona la -> ka mor'a sehokelo sa tšoantšetso ke moo e eang teng.

Sehokelo sa Letšoao sa UNIX kapa Malebela a Symlink

  1. Sebelisa ln -nfs ho ntlafatsa sehokelo se bonolo. …
  2. Sebelisa pwd hammoho le sehokelo se bonolo sa UNIX ho fumana tsela eo sehokelo sa hau se bonolo se supang ka eona. …
  3. Ho fumana lihokelo tsohle tse bonolo tsa UNIX le sehokelo se thata bukeng efe kapa efe, etsa taelo e latelang "ls -lrt | grep “^l” “.
Joaloka poso ee? Ka kopo arolelana le metsoalle ea hau:
OS Kajeno