In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The content of this article mainly focuses on how to establish and delete soft connections in the Linux system. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
What is a soft connection in a Linux system? How to establish a soft connection in Linux system? Soft connections in Linux systems are the same as shortcuts in windows. When accessing files or folders with a long depth, you can choose to use soft connections directly for quick access.
First of all, the destination address we need to reach is: / usr/local/neo4j/neo4j-community-3.2.3/bin
The code is as follows:
Total amount of root@kkc-virtual-machine:~# cd / usr/local/neo4j/neo4j-community-3.2.3/bin/ root@kkc-virtual-machine:/usr/local/neo4j/neo4j-community-3.2.3/bin# ll 56 drwxr-xr-x 3 dnsmasq nogroup 4096 July 27 17:21. / drwxr-xr-x 11 dnsmasq nogroup 4096 August 11 21:15.. /-rwxr-xr-x 1 dnsmasq nogroup 14 June 20:50 cypher-shell *-rwxr-xr-x 1 dnsmasq nogroup 14339 July 27 17:17 neo4j*-rwxr-xr-x 1 dnsmasq nogroup 5657 July 27 17:17 neo4j-admin*-rwxr-xr-x 1 dnsmasq nogroup 5637 July 27 17:17 neo4j-import*-rwxr-xr-x 1 dnsmasq nogroup 5636 July 27 17:17 neo4j-shell* drwxr-xr-x 2 dnsmasq nogroup 4096 August 11 21:12 tools/ root@kkc-virtual-machine:/usr/local/neo4j/ Neo4j-community-3.2.3/bin# 12345678910111213 next Let's create a soft connection: ln-s / usr/local/neo4j/neo4j-community-3.2.3/bin neo4jbin
Total amount of root@kkc-virtual-machine:/# ln-s / usr/local/neo4j/neo4j-community-3.2.3/bin neo4jbin root@kkc-virtual-machine:/# cd neo4jbin root@kkc-virtual-machine:/neo4jbin# ll 56 drwxr-xr-x 3 dnsmasq nogroup 4096 July 27 17:21. / drwxr-xr-x 11 dnsmasq nogroup 4096 August 11 21:15.. /-rwxr-xr-x 1 dnsmasq nogroup 14 June 20:50 cypher-shell* -rwxr-xr-x 1 dnsmasq nogroup 14339 July 27 17:17 neo4j*-rwxr-xr-x 1 dnsmasq nogroup 5657 July 27 17:17 neo4j-admin*-rwxr-xr-x 1 dnsmasq nogroup 5637 July 27 17:17 neo4j-import*-rwxr-xr-x 1 dnsmasq nogroup 5636 July 27 17:17 neo4j-shell* drwxr-xr-x 2 dnsmasq nogroup 4096 August 1121: 12 tools/ 12345678910111213 the above code shows The soft connection has been established successfully!
Next, let's learn how to delete a soft connection: first, look at the file
Total root@kkc-virtual-machine:/# ll consumption 105 drwxr-xr-x 24 root root 4096 August 16 21:28. / drwxr-xr-x 24 root root 4096 August 16 21:28.. / drwxr-xr-x 2 root root 4096 August 11 15:47 bin/ drwxr-xr-x 4 root root 1024 August 12 09:49 boot/ drwxrwxr-x 2 root root 4096 August 11 15:44 cdrom/ drwxr-xr-x 18 root root 4020 August 16 17:15 dev/ drwxr-xr-x root root 12288 August 16 17:15 etc/ drwxr-xr-x 4 root root 4096 August 11 15:46 home/ lrwxrwxrwx 1 root root 33 August 12 09:48 initrd.img- > boot/initrd.img-4.10.0-32-generic lrwxrwxrwx 1 root root 33 August 11 15:46 initrd.img.old-> boot/initrd.img-4.10.0-28-generic drwxr-xr-x 22 root root August 11 15:47 lib/ drwxr-xr-x 2 root root 4096 August 1 19:19 lib64/ drwx- 2 root root 16384 August 11 15:41 lost+found/ drwxr-xr-x 3 root root 4096 August 11 17:12 media/ drwxr-xr-x 3 root root 4096 August 11 17:25 mnt/ lrwxrwxrwx 1 root root 42 August 16 21:28 neo4jbin-> / usr/local/neo4j/neo4j-community-3.2. 3/bin/ 12345678910111213141516171819 We see this line of code: lrwxrwxrwx 1 root root 42 August 16 21:28 neo4jbin-> / usr/local/neo4j/neo4j-community-3.2.3/bin/
Quite simply, let's delete this file directly: rm-rf neo4jbin
Root@kkc-virtual-machine:/# rm-rf neo4jbin Thank you for your reading. I believe you have some understanding of "how to establish and delete soft connections in Linux system". Go and practice quickly. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.