New answers tagged

3

If you have the "suid" version of busybox, you could try to make the date command execute as root like this: File /etc/busybox.conf: ... [SUID] date = ssx root.root ...


0

I haven't made an intensive search, but I don't think what you're looking for exists on Linux. Opening a file descriptor doesn't take any global lock, only a per-process lock, so on a multicore machine whatever you'd be using to count the number of open file descriptors could be running literally at the same time that other threads is opening or closing ...


1

Download dos2unix-7.3.3.tar.gz. tar xvzf dos2unix-7.3.3.tar.gz cd dos2unix-7.3.3 make install prefix=$HOME This will install dos2unix in $HOME/bin/. For further information see INSTALL.txt.


5

Other answers show how to download and compile dos2unix, but if you're simply looking to convert files from DOS-style line endings (CR-LF) to Unix-style line endings, there are several other approaches which shouldn't involve installing anything: if you have tr: tr -d '\r' < input > output if you have Perl: perl -pi -e 's/\r\n/\n/g' input (which ...


1

You have to download the source code and compile it. Here is the source code. To untar it execute: (VERSION equals to the version you have downloaded) tar xvf dos2unix-VERSION.tar.gz Finaly execute: make If the compilation succeeded, it will appear an executable called dos2unix and unix2dos.


2

First of all, you downloaded a dos2unix executable for windows (dos2unix-7.3.3-win32.zip), which is not what you want because you are using Linux. Try downloading the source code for dos2unix for Linux and extract it to your home dir: mkdir $HOME/bin/ tar -zxvf dos2unix-7.3.3-src.tar.gz # the exact name of the downloaded file may vary cd dos2unix-7.3.3 ...


-1

You need to download the specific RPM from the OS website. For example, for CentOS, download the RPM file from http://vault.centos.org/


6

Use systemd's coredumpctl to list and retrieve your core dumps. Use the PID or name of the program to select one to dump (to file -o ...) or to run gdb on. $ coredumpctl list TIME PID UID GID SIG PRESENT EXE Mon 2016-04-11 11:18:23 CEST 21538 1000 1000 11 * /usr/bin/sleep $ coredumpctl info 21538 PID: 21538 ...


0

I can read DMI information as User under /sys/class/dmi/id/. Not including serial numbers (which require root privileges to read). I guess this is intended behavior by privacy aware kernel developers. Regarding dmesg: dmesg is a command for accessing the kernel ring buffer. Ring buffer implies older information are overwritten by newer ones when the buffer ...


3

bash-completion is enabled by sourcing a shell script—it sits at /usr/share/bash-completion/bash_completion on my Debian box, for example—but you can put it wherever. It looks in its own directory for the completions to load. Completions used to go in /etc/bash_completion.d, but that's now a backwards compatibility directory and can be changed by setting ...


-1

As far as I can tell, bash completion has been disabled in ChromeOS and there is no way to enable it. See Chromium Bug Report



Top 50 recent answers are included