Site Tools


tech_public:tp_linux (text)

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tech_public:tp_linux [2025/02/21 08:48] – [Mount SMB v3 from Windows] jasonwchtech_public:tp_linux [2025/11/03 20:25] (current) – [CHMOD all files/directories] jasonwch
Line 15: Line 15:
 (-- to prevent name starting with dash as conflict) (-- to prevent name starting with dash as conflict)
  
 +===== Find specific string from directories =====
 +
 +<code>grep -Ril "moment.js" /var/www/html/wiki/lib/plugins/edittable</code>
 ===== Change SFTP default upload permission (umask) ===== ===== Change SFTP default upload permission (umask) =====
  
Line 37: Line 40:
   -  Create .credential file ("." stand for hidden file), content: username=XXX password=XXX (separate line).   -  Create .credential file ("." stand for hidden file), content: username=XXX password=XXX (separate line).
   - CHMOD .credential file to 600   - CHMOD .credential file to 600
-  - sudo vi /etc/fstab\\ \\ <code>+  - sudo vi /etc/fstab \\ \\ <code>
 //XX.XX.XX.XX/SharedFolder /TARGETFOLDER cifs vers=3.0,credentials=.credential,uid=userid,gid=groupid,iocharset=utf8 0 0 //XX.XX.XX.XX/SharedFolder /TARGETFOLDER cifs vers=3.0,credentials=.credential,uid=userid,gid=groupid,iocharset=utf8 0 0
 </code> </code>
Line 56: Line 59:
  
 restart Terminal restart Terminal
 +
 +===== Add display resolution =====
 +
 +<code>
 +xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync
 +xrandr --addmode DP-3 1920x1080_60.00
 +xrandr --output DP-3 --mode "1920x1080_60.00"
 +</code>
 +
 +===== check processor frequency / temperature =====
 +
 +frequency
 +<code>
 +cat /proc/cpuinfo |grep "cpu MH"
 +</code>
 +
 +
 +temperature
 +<code>
 +sensors
 +</code>
tech_public/tp_linux.1740098926.txt.gz · Last modified: by jasonwch (text)

Top ↑