My system is Ubuntu 20.04. I'm trying to learn how to use Scribus. I realized that some property windows make the main document grayed out. That's all good, but when I try to move the floating property window, the whole windows with the grayed out main document move altogether and even change the size. Is it normal behavior of windows in ubuntu 20.04? I remember other programs like gimp do so as well in Ubuntu 20.04.
Smile's questions
I'm reading a book that is related SSH. I can't figure out what this sentence means.
SSH clients communicate with the agent via a local socket or named pipe whose filename is stored in an environment variable, so all clients (and all other processes) within your login session have access to the agent.
"via a local socket or named pipe", what does it mean?
For system-wide umask setting I edited "/etc/pam.d/common-session". session optional pam_umask.so umask=027
It doesn't have any effect. It does work on Ubuntu 16.04. I don't know why this won't work in Ubuntu 18.04.
I tried:
sudo useradd -s "/bin/false" -g [existingGroupName] [userNameToAdd]
After the command I looked it up in /etc/group
, but the user is not in the [existingGroupName]
. Why is that so?
I can see the ufw status by typing and entering
sudo ufw status
I want to back up this as a file. Where does this information reside in as a file?
I locked the passwd for a user by using the command,
sudo passwd -l [user]
Then, how do I unlock the passwd for this user?
$ cat rgb
lower (#1): "red green blue"
UPPER (#2): "RED GREEN BLUE"
$ sed '/#/ {s//=/; :k n; bk}' rgb
lower (=1): "red green blue"
UPPER (#2): "RED GREEN BLUE"
I know that sed
exits without autoprint if there is not any next line to append. However in this example sed
printed the last line. How does it work?
$ sed '/b/,~8 d' a-i.txt
I know what it does. But, they say "a multiple of 8" for ~8. Why is it expressed as "a multiple of 8"?
sed -e 's/word1/word2/' -l 3 output > output2
I'm testing this command. I expected 3 characters for each line. But, it doesn't work. output2
has the same line breaks as output
. Have I misunderstand line-wrapping??
I have read the date
command manual. There are many format controls like %a
, %b
, %c
, and so on. After reading through the manual I did echo $(date %s)
to know the absolute time. It was not correct form. echo $(date +%s)
is the correct one. This might be a stupid question, but how do people know there should be the +
before the %s
parameter?? In the manual there is no +
instruction at all. Thanks for reading.
I wanted to customize my shell prompt to include the time. So, I did export PS1='\t\w\$'
.
My prompt now looks like 18:57:37~$
. I don't know how to prepend it with username@hostname
.
Also, I don't know how to change the color of the each parameter for \t
, \w
, and so on.
After all the testing how do I set it back to the default?
Finally, where does the export line go? I looked in the ~/.profile
, but there isn't the line export PS1='\t\w\$'
.
There is a line in ~/.profile
which is
PATH="$HOME/bin:$HOME/.local/bin:$PATH"i
I'm not sure about the last i
.
- Should I remove it??
- Isn't it a syntax error??
ps aux --sort=-%cpu | grep -v 'whoami'
command is supposed to output processes that are not started by the effective user. However, it prints out my user's processes as well as other users'. Please explain what's wrong.
I tried to test "jobs" command on Ubuntu 16.04. It seems that there is no "jobs" command on my system. I did what I learned like "whereis jobs", "whatis jobs", "which jobs", but Ubuntu replies "jobs:", "jobs: nothing appropriate", "", respectively. I also tried "sudo apt-get install jobs". Not successful. What should I do to make jobs command working on my Ubuntu 16.04 system. Thanks for reading.
program 2> error.log
program &> filename
program >> filename 2>&1
program 2>&1
I was able to figure out what these lines mean.
However I don't quite understand where I should put the spaces. I also worry that it actually doesn't matter where to put spaces. Thanks for reading.
While running the less
command, pressing v opens the file inside the editor. I have set the EDITOR
environment variable to vi
by running the command export EDITOR=vi
.
It works perfectly fine as expected. However when I reboot the computer, the editor is no longer Vi. How do I make it permanent?
They say rm
command defaults to the option --preserve-root
. Is that right?
Otherwise I should put the line
alias rm='rm --preserve-root'`
in ~/.bashrc
to make that option happen without typing it every time I run the rm
command. To confirm this I ran type rm
, and got rm is hashed (/bin/rm)
.
I expected rm is aliased to rm --preserve-root
. Does anyone know what's going on with the rm
command?
I can use the following command successfully, and I'm quite confident with this command to make other combinations:
rename 's/\.htm/\.html/' *.htm
However I want to know more about it, especially about s
in it. They say it is a Perl expression. I haven't learned Perl programming language, so I have no idea why there is such a 's/\.htm/\.html/'
argument. Would you tell me what it is?? Thanks for reading.
I'm planning to make a video and audio editing system on Ubuntu. It is really difficult to match the need cause many hardware is not supporting softwares and drivers for ubuntu. At least audio interfaces should be well supported on ubuntu really this is the last resort. Supporting Every gear with usb connection with their own drivers and softwares won't be possible, but the audio interface is critical. What options do I have?? I glanced at the options through the internet, but they are all low quality or outdated. I hope Ubuntu support Arturia or UAD. Thanks for reading. Have a nice day:)
I'm studying find
command options.
Will
find . -perm -o=r
and
find . -perm /o=r
give the same results?