If using xdg-open to open applications, then use xdg-mime to set the default application for a given mime type (typically, installing xdg-utils gives you the xdg-mime and related programs).
For example, to see the "filetype" (mime-type, if you will) of given file:
$ xdg-mime query filetype tmp.txt
$ xdg-mime query filetype foo.pdf
The usual dynamic linker on Linux uses a cache to find its libraries. The cache is stored in /etc/ld.so.cache, and is updated by ldconfig which looks on the paths it’s given in /etc/ld.so.conf (and nowadays typically files in /etc/ld.so.conf.d).
So there is no default value for LD_LIBRARY_PATH, default library lookup doesn’t need it at all. If ...
For Chromium, when I choose "Don't ask again", Chromium stores the following setting in my ~/.config/chromium/Profile 1/Preferences file:
The appres utility lists the resources used by an application, both user and default.
appres XTerm xterm
The first argument is the class name (xterm -class Xxx). The second argument, which is optional, is the instance name (xterm -name xxx).
The “Large” font is .VT100.font5 or .VT100.utf8Fonts.font5. See the manual for whether .utf8Fonts is used, it's a ...
With setfacl you can set default permissions but not default owner/group for newly created files.
To get new files to be owned by a specific user, you'd need a setuid bit that works like the setgid bit on directories. Unfortunately that is not implemented.
With setfacl you can do something which is nearly equivalent in most scenarios: You can set an ACL like ...
Try open_with with the f or t flag:
open_with [application] [flags] [mode]
Open the selected files with the given application, unless it is omitted, in which case the default application is used. flags
change the way the application is executed and are described in their
own section in this man page. The mode is a number that specifies
You can use lsof to list all files by given process id and grep for fonts.
lsof -p <process_id_of_xterm> | grep fonts
lsof -p `ps -a | grep xterm | cut -d' ' -f1` | grep fonts
$ lsof -p `ps -a | grep xterm | cut -d' ' -f1` | grep fonts
xterm 17560 testuser mem REG 253,1 137272 9154732 /usr/share/fonts/...
found the solution:
When you get the question again, don’t press the button that makes
Chrome the default browser, but click on the far right of the bar on
the X to make the bar disappear. Big chance it won’t come back.
via a manjaro forum post
A new file is always created belonging to the user that the process creating the file is running as. (The effective user ID, to be precise.) This cannot be changed, because allowing users to create files belonging to other users would be security hole, similar to allowing non-root users to give away a file.
Whatever you're trying to do, you don't need to ...
Open dconf-editor (note that you may need to install it first: sudo apt install dconf-editor)
Navigate to org.gnome.gnome-screenshot:
Then enter a value for auto-save-directory in the format file:///path/to/directory/
You can use mimeopen with -d option:
man mimeopen :
This script tries to determine the mimetype of a file and open it with
the default desktop application. If no default application is
configured the user is prompted with an "open with" menu in the
Let the user choose a new default program for ...
If you want to change the behaviour of all new workspaces, just add
(or tabbed or default) to your .i3/config file, see section 4.8 of the documentation. The default is either horizontal, vertical or automatic, and governed by the default_orientation option, see section 4.7.
You can have finer-grained control using airblader's ...
The difference is that
apt install php-defaults
doesn’t work, because php-defaults is a source package, not a binary package.
A source package contains the source code and packaging descriptors used to build one or more binary packages. Source packages aren’t directly installable.
Link Mint is an Ubuntu-based distribution intended for desktop systems. One of its chief priorities is "ease of use" so a firewall just puts into play something that could break things for users. It's easier if the firewall only gets turned on if the operator is someone who knows what such a thing even is versus a novice user saying "Why don't it no worky?"
The first versions of Unix happened to use 512-byte blocks in their filesystem and disk drivers. Unix started out as a pretty minimalist and low-level system, with an interface that closely followed the implementation, and leaked details that should have remained abstracted away such as the block size. This is why today, “block” still means 512 bytes in many ...
As thrig pointed out, all that's needed is to create the directory structure that you want under /etc/skel.
Quoting from the useradd man page
-k, --skel SKEL_DIR
The skeleton directory, which contains files and directories to be copied in the user's home directory, when the home directory is created by useradd.
This option is only valid if the -m (...
You can use $EDITOR, provided that it's been defined:
But I think most docs use nano because if someone's blindly following along, it's a safe bet to use. If the user has decided they actually prefer one editor over another, they'll know enough to replace it with vim, emacs, etc themselves.
edit may work well on Debian-based systems, ...
Update: Note this answer is from 2013, it applies to FreeBSD 8.x and earlier. A BSD grep was added in revision 222273 and appeared in FreeBSD-9.0 (oddly that change is missing from the usually comprehensive release notes: Google search). A fully-featured GNU grep continues to be available in the ports collection.
FreeBSD grep is was GNU grep, albeit old and ...
As @Zelda mentioned the messages are hardcoded. If you want to change it beyond amending the message with additional bits:
$ sudo shutdown -h +120 Save your work.
You'll need to recompile shutdown, creating your own executable that includes the customized message.
For example, here's a sample source file, shutdown.c. Lines such as these would need to be ...
Traditionally, by login(1):
login sets the following environment variables:
HOME The user's home directory, as specified by the password
SHELL The user's shell, as specified by the password database.
Though these days it might be a window manager or terminal program making those settings, ...
It seems that you cannot put your desired default options in a config file.
If you know about $PATH you can resort to a hack.
Create this script:
feh --bg-color black "$@"
Call it feh and place it in your $PATH before /usr/bin/ (assuming that feh itself is in /usr/bin/).
Some distros have ~/bin/ in $PATH by default. So you would put that ...
Changing one's login shell is covered by The FreeBSD Handbook, in the chapter called Shells. It also points to a chapter called Installing Applications: Packages and Ports that will tell you what you need to know for installing bash (installing bash from a FreeBSD package would automatically update /etc/shells).
The steps involved, assuming an otherwise ...
Anything that can reasonably called Unix or Unix-like has POSIX utilities. You can generally assume that the utilities are present, that they support the listed options, and that they behave as indicated. There are a few limitations:
Features that are marked as optional may not be present everywhere.
Recently added features may not be present everywhere yet....
You cannot change the default message, you can only add some specific message of your by providing this after the time:
# shutdown 60 Down in an hour
Broadcast message from zelda@mongrel2_test
(/dev/pts/0) at 6:37 ...
The system is going down for maintenance in 60 minutes!
Down in an hour
You do not have to quote the text after the number of minutes ...