Bash commands are largely different from DOS/PowerShell ones.
Actually create a soft link, use command ln
with arg -s
.
$ sudo ln -s /path/to/the/target/folder ~/Desktop/shortcutname
The manjaro (I choosed KDE version) can be burnt into a portable disk using Rufus. After clicking the button, Rufus will ask if it uses DD modes or not. Please select the DD mode.
I installed the manjaro on a SSD+HDD machine. After entering the live desktop, you may prepare something before launching the installer:
sudo partitionmanager
. The worst case is that this sudo command doesn't help either, then you need to install gparted.sudo pacman -Sy gparted
. Run it by sudo gparted
./home
dir to the HDD while keep other dirs on the SSD.FAT32
. Label it as UEFI or anything you want./
mounting point (i.e. root). I labeled it as Manjaro.linux-swap
. Usually we put it at the end of the disk./home
later. This is because apps will be installed under it, so my small SSD can't handle them.boot
and esp
.本文介绍实用的 Ubuntu 命令。
hostname -I
最简单的:service <service-name> status
,下面是一个正常运行中的 xrdp 服务:
wu@DC-Lab:~$ service xrdp status
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-02-24 20:29:52 PST; 11min ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Process: 8505 ExecStop=/usr/sbin/xrdp $XRDP_OPTIONS --kill (code=exited, status=0/SUCCESS)
Process: 8517 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=0/SUCCESS)
Process: 8509 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
Main PID: 8518 (xrdp)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/xrdp.service
└─8518 /usr/sbin/xrdp
如果要进一步展示日志,比如检查 xrdp 服务为什么不能正常工作,请使用 sudo systemctl status xrdp
。注意看下面列出的提示信息中带有“Error”的行(一般会标为红色)。
wu@DC-Lab:~$ sudo systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2020-02-24 20:22:57 PST; 1min 32s ago
Docs: ...
... xrdp[3289]: (3289)(139896572966720)[ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
The normal way is to right click on the disk shown in the file explorer, then choose remove
(NOT unmount
!).
If the remove
option is grey (i.e. unclickable), try steps as follows:
unmount
instead.gnome-disk
. On the pop-up window, select the disk your want to remove, and click power off
from the upper-right hamburg menu. You should see notification saying that the USB disk is disconnected.