In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what characteristics of Linux senior users, Xiaobian thinks it is quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
1. Of course, the era began on January 1, 1970
There are many rumors about why Unix computer clocks always reset back to 1970-01-01. But the somewhat tedious fact is that Unix "epochs" are universal and simple reference points for synchronization. Halloween, for example, falls on the 304th of the year in the Julian calendar, but we usually refer to it as the 31st. We know which month the 31st is referring to because we have a common reference point: we know Halloween is celebrated in October, which is the tenth month of the year, and we know how many days each preceding month contains. Without these values, although we can track special seasonal events using traditional timing methods such as moon phases, computers clearly do not have this ability.
The computer needed a definite and well-defined value, so the value 1970-01- 01T00:00: 00Z was chosen as the beginning of the Unix era. Whenever a POSIX computer's time is inaccurate, services such as Network Time Protocol (NTP) can provide it with the number of seconds since 1970-01-01T00:00:00Z, which the computer can convert into dates that are easily recognizable to humans.
Date and time are notoriously complex things to track in calculations, mainly because almost all standards have exceptions. A month doesn't always have 30 days, a year doesn't always have 365 days, and even the number of seconds in each year tends to vary. If you are looking for a fun and frustrating programming exercise, then try programming a reliable calendar app!
2. Enter more than two letters and you will find it troublesome
The most common Unix commands are notoriously short. In addition to commands like cd, ls, and mv, there is one command that simply cannot be shorter: w (which shows who is currently logged in based on the/var/run/utmp file).
On the one hand, extremely short commands seem unintuitive. New users may not guess that typing ls will list directories. But once the commands are learned, they must be as short as possible. If you spend all day on your terminal, the fewer keystrokes you type means you have more time to get work done.
Fortunately, single-letter commands aren't too many, so you can use most letters as aliases. For example, I use Emacs so often that I think emacs takes too long to type, so alias it e by adding the following line to the.bashrc file:
alias e='emacs'
You can also add aliases to commands temporarily. For example, if you find yourself running firewall-cmd repeatedly while solving a network problem, you can create aliases for the current session:
$ alias f='firewall-cmd'$ fusage: see firewall-cmd man pageNo option specified.
As long as you open the terminal, your alias will always exist. Once the terminal is closed, it is forgotten.
Do nothing more than click twice.
Linux users love efficiency. Although not every Linux user is always in a rush to get work done, there are conventions in the Linux desktop that aim to reduce the number of operations required to complete a task. Here are some examples.
In the KDE file manager Dolphin, a single click opens a file or directory. Suppose if you want to select a file, you can click and drag or Ctrl + click. This can be confusing for users who are used to double-clicking everything, but once you try the single-click action, you usually can't go back to the laborious double-click action.
On most Linux desktops, middle-click to paste the latest contents of the clipboard.
On many Linux desktops, you can modify the drag action by pressing Alt, Ctrl, or Shift. For example, Alt + drag moves windows in KDE, while Ctrl + drag in GNOME copies files instead of moving them.
You will not perform any operation more than three times because you have automated it the third time.
Forgive me for exaggerating, but many Linux users expect their computers to work harder than they do. While learning how to automate common tasks takes time, it tends to be easier on Linux than on other platforms because Linux terminals and Linux operating systems are so tightly integrated. The easiest thing to automate is what you already do in the terminal, because commands are just strings you type in the interpreter, and the interpreter (terminal) doesn't care if you type strings manually or point them to a script.
For example, if you find yourself frequently moving a set of files from one location to another, perhaps you can use the same sequence of instructions as a script that you can trigger with a single command. Suppose you do this manually every morning:
$ cd Documents$ trash reports-latest.txt$ wget myserver.local/reports/daily/report-latest.txt$ cp report-latest.txt reports_daily/2019-31-10.log
It's a simple sequence, but repeating it once a day isn't the most effective way to kill time. With a little abstraction, you can automate it with a simple script:
#!/ bin/sh trash $HOME/Documents/reports-latest.txt wget myserver.local/reports/daily/report-latest.txt \ -P $HOME/Documents/udpates_daily/`date --iso-8601`.log cp $HOME/Documents/udpates_daily/`date --iso-8601`.log \ $HOME/Documents/reports-latest.txt
You can call your script get-reports.sh and manually launch it every morning, or you can even type it into crontab so that the computer can perform the task without any intervention from you.
For new users, this can be a bit confusing, as it's not always obvious what and what is one. For example, if you often find yourself opening images and scaling them down by 50%, you may be accustomed to doing the following:
HarmonyOS Technology Community
Open your photo viewer or editor
scaled image
Export images as modified files
close the application
If you do it several times a day, you may get tired of the repetition. However, since you are performing these operations in a graphical user interface (GUI), you need to know how to script the GUI to automate it. Some applications, such as GIMP, have rich scripting interfaces, but the process is clearly not as simple as modifying a bunch of commands and storing them in a file.
Again, sometimes there are equivalent actions on the command line to what you do in the GUI. Convert documents from one text format to another using Pandoc, image manipulation using Image Magick, music and video editing and conversion from the command line, and so on. The biggest problem is that you need to know what to look for, usually learning new (and sometimes complex) commands. However, scaling down an image in the terminal is obviously simpler than in the GUI:
#!/ bin/sh convert "${1}" -scale 50% `basename "${1}" .jpg`_50.jpg
These cumbersome, repetitive tasks are worth studying. You never know how easy and fast your job is to get a computer to do!
5. Jump between releases
I am an enthusiastic Slackware user at home and RHEL user at work. Actually, this is not true, I am now a Fedora user at work. Except sometimes I use CentOS, occasionally I run Mageia.
Debian running on PowerPC64
It doesn't matter whether the distribution is good or bad; one of the great joys of being a Linux user is the freedom to decide which distribution to run. At first glance, they are basically the same, refreshing. But depending on your mood, you may prefer CentOS stability to Fedora's constant updates, or you may one day really enjoy Mageia's centralized control center and then modularize the original Debian configuration files for fun, and sometimes you'll switch entirely to other operating systems.
OpenBSD, not a Linux distribution
The point is, Linux distributions are passion projects, and it's fun to be part of someone else's open source passion.
6. You are passionate about open source
Regardless of your experience, if you are a Linux user, you will undoubtedly be passionate about open source. Whether you express your passion every day by co-creating art or code, or sublimate it to work only in freedom and freedom, you live and build on open source. Because there are thousands of you, there is an open source community, and the community becomes richer because of you.
About "Linux veteran users have what characteristics" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
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.