RHCSA voor friends
  • 0.0 Itinerary
  • 0.1 Environment
  • 1.0 Access
  • 1.1 SSH-keys
  • 1.2 Console Access
  • 2.0 File System Navigation
  • 2.1 Navigation and File Management
  • 2.2 Running Command as Root
  • 2.3 Checking Filesystems
  • 2.4 Symlinks
  • 2.5 Secure Copy
  • 3.0 Bash Scripting
  • 3.1 Find, Grep and IO
  • 3.2 Bash Completion
  • 3.3 Man Pages
  • 3.4 Environments
  • 4.0 Text Files
  • 4.1 Reading Text Files
  • 4.2 Text Editor: VIM
  • 5.0 Users, Groups and Passwords
  • 5.1 Create Users using CLI
  • 5.2 Managing Groups Using CLI
  • 5.3 Managing User Password Aging
  • 6.0 File PErmissions and ACL’s
  • 6.1 Managing File Security from the CLI
  • 6.2 Controlling New File Permissions and Ownerships
  • 6.3 Using ACL’s to Grant and Limit Access
  • 7.0 SELinux
  • 7.1 SEManage
  • 7.2 SEContext
  • 7.3 SEAlert
  • 7.4 SEBoolean
  • 8.0 DNF
  • 8.1 Repositories
  • 8.2 Install and Update Software
  • 9.0 System Processes and Systemd
  • 9.1 Killing Processes
  • 9.2 Process Priorities
  • 9.3 Systemd
  • 10.0 Networking
  • 10.1 Network Configuration
  • 10.2 Host names
  • 10.3 IPv6
  • 11.0 Time Settings
  • 11.1 Adjust System Time
  • 12.0 Logging
  • 12.1 Logging and Rsyslog
  • 13.0 Disk Management
  • 13.1 Mounting and Creating filesystems
  • 13.2 Swap Space
  • 14.0 Boot Process and the Kernel
  • 14.1 Boot Issues
  • 14.2 Resetting Passwords
  • 15 Advanced Disk Management
  • 15.1 LVM
  • 15.2 Resize LVM
  • 16.0 Cron
  • 16.2 Adding Cron Jobs
  • 17.0 Website and FirewallD
  • 17.1 Website and FirewallD
  • 18.0 Tuned
  • 18.1 Configuring Tuned
  • 19.0 Networks: Users and Filesystems
  • 19.1 Networks: Mounting Network Filesystems
  • 19.2 FTP
  • 20.0 Archiving with TAR
  • 20.0 File Compression
  • 21.0 Podman
  • 21.0 How to Podman
  • Module 22.0 Lab
RHCSA voor friends
  • »
  • 2.4 Symlinks
  • Bekijk paginabron

2.4 Symlinks

We are going to make links between files so that 1 file can be accessed from multiple locations.

become root

We are first going to create a hard link for the file /usr/share/doc/vim-common/README.md and we are going to link it to /root/manual.txt. We are going to use the ln (link) command for this.

ln

Examples on how to do this:

ln /usr/share/doc/vim-common/README.md /root/manual.txt

Use ls -l to check the link count, It should look something like this

-rw-r--r--. 2 root root 4689 Oct 15  2012 manual.txt 

Verify the link count on the original file /usr/share/doc/qrencode-libs-3.4.1/README

ls -l /usr/share/doc/vim-common/README.md

It should look like this:

-rw-r--r--. 2 root root 4689 Oct 15  2012 /usr/share/doc/vim-common/README.md

Now we are going to practice with creating a symbolic link. To create a symbolic we will need to use -s (symbolic) together with the ln command.

Go ahead and link create the symbolic link /root/tmpdir and make it point to /tmp

ln -s /tmp /root/tmpdir

You can again verify the result with the below command:

ls -l /root
Vorige Volgende

© Copyright MIT License.

Gebouwd met Sphinx met een thema geleverd door Read the Docs.