Tag Info

Hot answers tagged

5

ls sorts by name by default. If there's no directories to contend with, then just do this: ls | head -1 To add some completion, if you have to worry about directories, do the following: ls -p | egrep -v /$ | head -1


3

Unfortunately, ls sorts the file names alphabetically, which isn't correct for numbers. For example, 10.war will before 2.war, which is not what you wish. Probably you can find some, more intelligent sorting tool by google, but in the absence of that I would suggest: If your files are alphabetical, @Hyppy 's solution is perfect for you. If they are ...


1

AD only supports LDAP over UDP in a very limited way. Not much more than being able to query authentication methods available. LDAP Search Over UDP Active Directory supports search over UDP only for searches against rootDSE. It encodes the results of an LDAP search performed over UDP in the same manner as it does a search performed over TCP; ...


1

Either the sysctl lines in /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 and/or the GRUB line in /etc/default/grub GRUB_CMDLINE_LINUX="ipv6.disable=1" will disable ipv6 support at the system level and should be enough. If your applications still attempt to connect via ipv6, ...


1

In my case the problem is with hardware virtualization disabled in BIOS. Also I was in a state that I can't turn that on. Replacing 'kvm' with 'qemu' fixed my problem.



Only top voted, non community-wiki answers of a minimum length are eligible