確 率 人
松浦將國個人の備忘録兼掲示板です.
来年の県民手帳
来年の県民手帳は宮城県にしました('25.1--'25.12?).少し前に「宮城峡」を買い,ここ暫くは宮城宮城した日々になりそうですね.皆様,良いお年をお迎え下さい.
県民手帳のランダム・ウォーク
How to display the updated files within the specific period of date by "ls" command on Linux terminal
Note that your environment may differ from my environment(lubuntu). For example, if you want to find the updated files from Aug 15 to Aug 20 in 2024, then
1. move to that directory (e.g. "abcde" directory) by "cd" command.
$ cd abcde2. Execute the next "ls" command.
$ ls -ltr | awk '$6 == "8月" && ($7 >=15 && $7 <= 20) && $8 = 2024 {print $6"-"$7"-"$8,$9}'If you want to find the updated files before Aug 5 or after Aug 25 in 2024, then 3. execute the next "ls" command.
$ ls -ltr | awk '$6 == "8月" && ($7 <=5 || $7 >= 25) && $8 = 2024 {print $6"-"$7"-"$8,$9}'See also, How to get only files created after a date with ls? - Stack Exchange Confusing use of && and || operators - Stack Exchange.
How to change brightness of display on Linux terminal
To change brightness of display on Linux terminal,
1. find the display name as follows. That is "DP-2" in my case.
$ xrandr --verbose2. Execute the following command.
xrandr --output (the display name) --brightness (the number between 0 and 1)For example,
xrandr --output DP-2 --brightness 0.5If the last number is close to 0 [1], then the display will be dark [bright].
How to enable scrolling in xterm (Lubuntu 24)
Please see here.
1. Make a file XTerm in your home directory.
$ cd ~ $ touch XTerm2. For example, edit the file XTerm and let it be as follows:
XTerm*Background: DarkViolet XTerm*Foreground: white XTerm*SaveLines: 2000 XTerm*faceName: courier XTerm*faceSize: 18 XTerm*rightScrollBar: true XTerm*ScrollBar: true XTerm*scrollTtyOutput: false XTerm*VT100.Translations: #override \ Shift CtrlV: insert-selection(CLIPBOARD) \n\ Shift Ctrl V: insert-selection(PRIMARY) \n\ Shift : select-start() \n\ Shift : select-extend() \n\ Shift : select-end(CLIPBOARD) \n\
Subscribe to:
Posts (Atom)