Most Popular
1500 questions
64
votes
54 answers
Hidden Features of Linux
Following in the spirit of Hidden Features of PowerShell and various others on Stack Overflow, what Linux commands or combinations of commands do you find essential in your work?
Also See:
Hidden Features of MySQL
Hidden Features of PowerShell…
Chris Bunch
- 1,009
64
votes
2 answers
What Should be the Permissions of Apache SSL Directory, Certificate, and Key?
I have my cert.pem and cert.key files in /etc/apache2/ssl folders.
What would be the most secure permissions and ownership of:
/etc/apache2/ssl directory
/etc/apache2/ssl/cert.pem file
/etc/apache2/ssl/cert.key file
(Ensuring https:// access…
JP19
64
votes
5 answers
A better unix find with parallel processing?
The unix find(1) utility is very useful allowing me to perform an action on many files that match certain specifications, e.g.
find /dump -type f -name '*.xml' -exec java -jar ProcessFile.jar {} \;
The above might run a script or tool over every…
PP.
- 3,426
64
votes
4 answers
How to change sshd port on Mac OS X?
I want to change which port sshd uses on a Mac server. For example, let's say from port 22 to port 32.
Editing /etc/sshd_config does not seem to work. Does anyone know how to change it? I'd prefer a method that's compatible with all OSX versions…
Alexander Artemenko
- 1,423
64
votes
8 answers
Overriding some DNS entries in BIND for internal networks
I have an internal network with a DNS server running BIND, connected to the internet through a single gateway. My domain "example.com" is managed by an external DNS provider. Some of the entries in that domain, say "host1.example.com" and…
Remy Blank
- 2,045
64
votes
9 answers
How to zero fill a virtual disk's free space on windows for better compression?
How to zero fill a virtual disk's free space on windows for better compression?
I would like a simple open source tool (or at least free) for that. It should probably write an as big as possible file full of 0and erase it afterwards. Only one pass…
mit
- 1,964
63
votes
11 answers
How Often Should I Update our Linux Server?
I am responsible for managing both our production server (mail, web, database are all on one server) and our test server. Both are built on Debian. However as I am very new to system administration, I have only been installing updates as I come…
Noah Goodrich
- 19,877
63
votes
4 answers
Purpose of Debian "sites-available" and "sites-enabled" directories?
Can anyone tell me—in a nutshell—what the purpose of these two directories are in Debian?
/etc/apache2/sites-enabled
/etc/apache2/sites-available
I notice that diffing sites-available/000-default and sites-enabled/default shows they are…
aaaidan
- 732
63
votes
2 answers
debian packages version convention
I'm using debian/Ubuntu, and get confused about versions of packages.
When using dpkg -l command, I get:
ii vim 2:7.3.429-2ubuntu2.1 Vi IMproved - enhanced vi editor
ii vim-common …
cizixs
- 933
63
votes
9 answers
Is it OK to set up passwordless `sudo` on a cloud server?
I love the idea of accessing servers via keys, so that I don't have to type in my password every time I ssh into a box, I even lock my user's (not root) password (passwd -l username) so it's impossible to log in without a key.
But all of this…
63
votes
8 answers
Deploying a folder of template files using ansible
Is there an easy way to deploy a folder full of template .j2 folder to a linux box, using the same name as the template, but without the .j2 extension, rather than using the template module for each file?
Right now i have a long list of:
- name:…
Trololololol
- 733
- 1
- 5
- 6
63
votes
9 answers
How to change owner of mount point
We have moved mysql data directory to another disk, so now /var/lib/mysql is just a mount point to another partition. We set the owner of the /var/lib/mysql directory to mysql.mysql.
But everytime we mount the partition, the ownership changes to…
Arie K
- 1,633
63
votes
4 answers
Any difference between DOMAIN\username and username@domain.local?
I'm trying to troubleshoot an obscure authentication error and need some background information.
Is there any difference between how Windows (and programs like Outlook) process DOMAIN\username and username@domain.local?
What are the proper terms…
Josh Kelley
- 993
- 1
- 7
- 17
63
votes
8 answers
How to prevent "ps" reporting its own process?
$ ps | grep django
28006 ttys004 0:01.12 /usr/bin/python bin/django celeryd --beat
51393 ttys005 0:01.45 /usr/bin/python bin/django celeryd -l INFO
51472 ttys005 0:01.29 /usr/bin/python bin/django celeryd -l INFO
51510 ttys005 0:01.89…
Steve Bennett
- 5,910
63
votes
7 answers
How to convert 'dmesg' time format to 'real' time format
I have (for example) this log entry in dmesg output:
[600711.395348] do_trap: 6 callbacks suppressed
Is there a possibility to convert this 'dmesg' time to 'real' time to know, when this event happend?
Jan Marek
- 2,200