Skip to content
Advertisement

linux ls command to list file with certain characters in filename

I have files with name in this (_abcd_) remains constant rest of the numbers in beginning and timestamp at the end changes every day. i want to list all such files in a txt file I am doing the following this will list all files and folder in mypath where I want only file with (abcd) in file name please

Shell script ‘read’ doesnt work with ‘EOF’

This script below is working, I want to read a value from files svc1.data and used it in syntax. But this script below doesn’t work, it keeps saying : -bash: syntax error near unexpected token `;’ Please help, whats wrong with the 2nd script.. Answer Just close the HEREDOC, like this:

Get user’s group from linux kernel driver

I’m developing a simple pipe kernel driver as an excercise for university, and my task states that users from each user group should have access to their own separate pipe. But I can’t find how to get group of the user who opened my driver file. I have functon static int pipe_open(struct inode *i, struct file *f) which receives arguments

HTTP post request?param=PARAM vs –data-urlencode

i am just querying my InfluxDB and i made it work, but i never did web so i am not so experienced with http protocol. I need to do curl request. This one works fine: But this does not and i dont understand why, i thought it is the same thing just differently put. I guess no need for u

run script when chrony steps clock

I need to start a certain service after system clock was correctly stepped by crony. System time is maintained by chrony (chronyd (chrony) version 3.5 (+CMDMON +NTP +REFCLOCK +RTC -PRIVDROP -SCFILTER -SIGND +ASYNCDNS -SECHASH +IPV6 -DEBUG)). Chrony setup, if relevant, is: example of a “normal, tracking status” is: while “unsynchronized” (initial) status is: I seem to remember crony can call

ibmcom/db2 docker image fails on m1

I’m having trouble setting up DB2 on macOS via Docker on my M1-Max MacBook Pro (32 GB RAM). I already had a look at this question, which might be related, however there is not a lot of information and I cannot exactly say, if it is about the exact same thing. I set up following docker-compose.yml: version: ‘3.8’ services: db2:

Unable to get PATH to be set for all users

Trying to get OpenJDK 17 installed for Pufferpanel. User pi can do java -version fine however Pufferpanel gets bash: java: command not found My /etc/profile and /etc/profile.d/java.sh have these lines: In addition JAVA_HOME=”/usr/lib/jvm/jdk-17.0.1+12″ is set in /etc/environment Full permissions have been given for java.sh and the JAVA_HOME folder with chmod 777. The user pufferpanel now can run the script however

Can’t launch debug – C in VS code on Linux

Let me preface this, I am very new to linux and to working on a non-IDE based setup. I am trying to debug a very simple C program using vs code version 1.55 I unloaded all modules beforehand, so vs code can load appropriate default gcc & gdb versions (which it did, GCC 8.2) I am following the VS code

Advertisement