TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Linux

Create Symbolic Links in Linux

Overview

In this tutorial, we will learn how to create symbolic links in Linux. We can use the ln command to create hard links and symbolic links.

A link in Linux is a pointer to a file. The pointer associates the filename with an inode number. There are two kinds of links:

  • Hard Links
  • Symbolic/Soft Links

 Create a Symbolic link

To create a symbolic link to the file “sample.txt”, use
the following command:

$ ln -s sample.txt symlink_name

Create a Symbolic link

symlink_name is the symbolic link to the file. We can replace this with another name. In the example, we have created a symbolic link called ‘slink’ to the file ‘sample.txt’

Notice that the file and the symbolic link have different inode numbers.

We can also create a symbolic link to a directory on Linux. For example,

$ ln -s target_dir link_dir

That’s it.

Related Posts

Android Studio Setup Wizard

Linux /

Customization of Android Development Environment

Download Android Studio

Linux /

Download Android Studio Package on Linux

gedit Text Editor Ubuntu

Linux /

gedit Text Editor in Linux

Download Ubuntu Desktop

Linux /

Create Ubuntu Bootable USB Pendrive on Windows

Linux /

Linux Files

‹ Kate Text Editor› Linux Filenames & File extensions

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version