In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what the different ways to create shortcuts in Linux system are, the content is concise and easy to understand, and it will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
How to create shortcuts in Linux system?
Environment system: majaro linux terminal: zsh
Manually create app.desktop create shortcut app.desktop to / usr/share/applications
Cd / usr/share/applications
Sudo vim app.desktop
Open the empty app.desktop file in Vim and press A for editing. Type in the text
[Desktop Entry] Type=Application
# shortcut type Version=0.9.4
# Software version Name=app
# Software name Icon=/usr2/ns-allinone-3.25/netanim-3.107/netanim-logo.png
# the icon displayed Exec=/usr2/ns-allinone-3.25/netanim-3.107/NetAnim
# the executable file Terminal=false in the installation package
# whether to enable the terminal after the above content has been edited successfully, enter: wq to save the changes
App.desktop does not have executable permission at this time, so you need to give it executable permission. Enter the following command
Sudo chmod + x app.desktop
Press Super to open all the software at this time, search app and you will see the shortcut.
Creating a soft connection is equivalent to a shortcut on Windows, assuming the app software executable file is in / opt/app/app. The command is as follows
Ln-s / opt/app/app ~ / desktop
The path to the first executable must be a global path. The first path is the source path of the program, and the second is where the shortcut needs to be created.
Removing the-s execution creates a hard link, similar to replication, but if either changes, the other will change.
I often use the first method in my view of the above two methods, but it seems that the second method is simpler. It feels like the second one doesn't work very well.
Because I'm not used to putting things on my desktop, I usually use the first one, and all the .desktop files in application can be added to Dock.
Quick start mode of terminal command
Sudo ln-s / opt/app/app / usr/local/bin
After the execution, the soft link of app has been created in / usr/local/bin. Type app in the terminal to start the app software.
If it is a frequently used software, you can also set common shortcuts in the keyboard shortcuts.
In this way, it will become very smooth in the process of use, and the effect of not leaving the keyboard with both hands has been achieved.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
The above is what are the different ways to create shortcuts in Linux system. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
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.