Unix & Linux Stack Exchange Community Digest

Top new questions this week:

Where should small utility programs store their preferences?

I have several utility programs that do not have their own directory and are just a single executable. Typically I put the binary in /usr/local/bin. A problem I have is how to manage preference ...

asked by Tyler Durden 16 votes
answered by Useless 34 votes

Should I use 1,15 or */15 in crontab to run a command every 15 days?

As I know crontab has those fields, starting by left to right. 1 minutes 0-59 2 hours 0-23 3 days of month 0-31 4 month 1-12 5 day of the week 0-6 6 command I want to run foo command ...

asked by elbarna 10 votes
answered by thanasisp 14 votes

Awk seems to be confused what $1 is

I use awk a fair bit for parsing logs; I have never seen anything like this: I have six file containing a number of lines; I want the ones containing "100", and to choose which columns to ...

asked by Iain 7 votes
answered by Stephen Kitt 15 votes

Why do some Linux utilities output Unicode (when it is not expected)?

While building a tool that reads command output I realized that some Linux utilities output Unicode characters when I didn't really expect them to do so. For instance, find uses ‘ (as opposed to the ...

locale unicode utilities  
asked by kobus-v-schoor 7 votes
answered by Artem S. Tashkinov 10 votes

Finetuning kernel for high swap environment

I own 8GB RAM Dell XPS13 9343, the amount of RAM is biggest pain of this computer, it's soldered on mainboard. Despite CPU supports more even resoldering bigger one with firmware modification is not ...

ubuntu swap kernel-panic kernel-parameters  
asked by nusch 5 votes
answered by Artem S. Tashkinov 9 votes

Has anybody heard of (a trick to make) a local hard drive based cache of NFS? (primarily in FreeBSD)

Problem: NFS can be slow, when starting binaries (e.g. /usr/bin) over NFS, such as in a network booted system. RAM buffer cache might not be sufficient to avoid slowness. Idea: it seems we should be ...

freebsd nfs cache unionfs  
asked by Gunther Schadow 5 votes

How to extract multiple values from a file in a single pass?

I have a huge log file (about 6GB) from a simulation. Among the millions of lines in that file, there are two lines that are frequently repeating for a given time: ... Max value of omega = 3.0355 Time ...

text-processing awk sed  
asked by adhrar_nmatrous 5 votes
answered by αғsнιη 9 votes

Greatest hits from previous weeks:

How to see full log from systemctl status service?

I check service status with systemctl status service-name. By default, I see few rows only, so I add -n50 to see more. Sometimes, I want to see full log, from start. It could have 1000s of rows. Now,...

logs systemd  
asked by 10robinho 540 votes
answered by larsks 782 votes

How can I replace a string in a file(s)?

Replacing strings in files based on certain search criteria is a very common task. How can I replace string foo with bar in all files in the current directory? do the same recursively for sub ...

text-processing awk sed perl  
asked by terdon 836 votes
answered by terdon 1131 votes

Split string by delimiter and get N-th element

I have a string: one_two_three_four_five I need to save in a variable A value two and in variable B value fourfrom the above string I am using ksh.

ksh string cut split  
asked by Alex 126 votes
answered by heemayl 181 votes

How do I loop through only directories in bash?

I have a folder with some directories and some files (some are hidden, beginning with dot). for d in *; do echo $d done will loop through all files, but I want to loop only through directories. How ...

bash files directory  
asked by rubo77 333 votes
answered by rubo77 26 votes

Where are Apache file access logs stored?

Does anyone know where file access logs are stored, so I can run a tail -f command in order to see who is accessing a particular file. I have XAMPP, which is an Apache server installed on my machine, ...

files logs syslog  
asked by AkshaiShah 192 votes
answered by Gilles 'SO- stop being evil' 223 votes

How can I delete all lines in a file using vi?

How can I delete all lines in a file using vi? At moment I do that using something like this to remove all lines in a file: echo > test.txt How can I delete all lines using vi? Note: Using dd ...

asked by Cold 313 votes
answered by Anthon 540 votes

How do I remove a user from a group?

Which command should I use to remove a user from a group in Debian? When adding a user to a group, it can be done with: usermod -a -G group user However, I could not find a similar command (...

users group  
asked by Lekensteyn 405 votes
answered by Gilles 'SO- stop being evil' 197 votes

Can you answer these questions?

Is it possible to let software under /opt to use configuration file under /opt filstly?

We know in Linux there is /opt directory. we can install a whole software under it. but how about a software's configure file? I compile varnish and installed it into /opt/varnish, but /opt/varnish, I ...

linux configuration  
asked by 244boy 1 vote

May the screen/keyboard be dedicated to a unique (background/non-root) process?

Consider an industrial computer (say "embedded system"), equipped with a linux server OS (no desktop) running just a SINGLE application process (a single non-root user) attached to an high ...

linux terminal tty console graphics  
asked by Giorgio Robino 1 vote
answered by ctrl-alt-delor -1 votes

How do i Install Linux mint with /boot partition

I have a particular reference video I am following but I am not sure what steps to execute if I am to install Linux mint with /boot partition. See reference video: https://www.youtube.com/watch?v=...

asked by avg9957 1 vote
You're receiving this message because you subscribed to the Unix & Linux community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 110 William Street, 28th floor, New York, NY 10038