Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/fortune/datfiles various tips/simplifications from Uni...
details: https://anonhg.NetBSD.org/src/rev/5f6225620c5c
branches: trunk
changeset: 372002:5f6225620c5c
user: nia <nia%NetBSD.org@localhost>
date: Tue Oct 25 15:44:02 2022 +0000
description:
various tips/simplifications from UnitedBSD
diffstat:
games/fortune/datfiles/netbsd-tips | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diffs (35 lines):
diff -r 868daea2b4ff -r 5f6225620c5c games/fortune/datfiles/netbsd-tips
--- a/games/fortune/datfiles/netbsd-tips Tue Oct 25 08:07:07 2022 +0000
+++ b/games/fortune/datfiles/netbsd-tips Tue Oct 25 15:44:02 2022 +0000
@@ -1,6 +1,6 @@
List 20 largest files (larger than 5 MB) sorted by megabytes:
- find / -type f -size +10000 -print0 | xargs -0 du -m | sort -nr | head -20
+ find . -type f -size +10000 -exec du -h {} + | sort -nr | head -20
%
You can keep specific rc.conf configurations in individual files
under /etc/rc.conf.d/ where each file is named after the $name of
@@ -211,3 +211,23 @@
screenblank(1) can disable the framebuffer if the keyboard and mouse are
idle for a period of time, and re-enables the framebuffer when keyboard
or mouse activity resumes.
+%
+If you want to convert a Microsoft Windows text file to have Unix line
+endings, it's possible to achieve by simply stripping all of the carriage
+return characters from the file:
+
+ tr -d '\r' < IN > OUT
+
+However, you might want to do this more carefully (i.e. only remove
+carriage returns that constitute a line ending). See "dos2unix" in pkgsrc.
+%
+Some useful X11 commands:
+
+ xset s off # disable screen blanking
+ xset -dpms # disable screen power saving
+ xset b 0 # mute bell (beep)
+ xset m 55/20 4 # mouse acceleration
+%
+Automatically run a make(1) job on each active CPU:
+
+ alias make="make -j $(sysctl -n hw.ncpuonline)"
Home |
Main Index |
Thread Index |
Old Index