Category "linux"

Linux: buddy system free memory

Could anyone explain this code? page_idx = page_to_pfn(page) & ((1 << MAX_ORDER) - 1); page_to_pfn() have already return the page_idx, so what does

Is it possible to use "/" in a filename?

I know that this is not something that should ever be done, but is there a way to use the slash character that normally separates directories within a filename

Recursive copy of a specific file type maintaining the file structure in Unix/Linux? [closed]

I need to copy all *.jar files from a directory maintaining the folder structure of the parent directories. How can I do it in UNIX/Linux term

Vim incremental search

I'm using putty on a Linux machine. My usual method for searching in vi is entering the slash /, then my search string, enter, then go through all the matches b

Ubuntu 18.04 Problem Making Certificate Request, string too short

I am currently running Ubuntu 18.04 on Hyper-VM, and I need to run a rack proxy server, I am using ruby 2.2.0 and rails 4.2.11. The first option I found was pra

How do I disable the weird characters from "bracketed paste mode" on the Mac OS X default terminal?

I encountered a problem with my terminal where when I paste text, it is prefixed by 00~ and suffixed with 01~. For example, I will highlight text and push Comm

linux kernel consoleblank argument ignored

I'm running an embedded Linux board with a console only (no graphical environment) based on the i.MX6 and a custom Yocto build. I'm trying to stop the screen f

Linux Kernel Module - Create Directory

I've got a problem about creating a directory within a linux kernel module. What I want: Creating a directory within a kernel module. Here is my actual code:

How to know the process id of current bash session? [duplicate]

I'm on a linux server and admin user. There're many admin users using this machine at the same time. So under current bash command line, how t

Debian 10 MariaDB 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'

Good evening Community, I am in despair because I cannot install MariaDB on Debian10. There are similar Stackoverflow questions but none of them helped to solv

What do the identifiers PID, PPID, SID, PGID, UID, EUID mean?

I was assigned to Write a C program that prints the following identifiers PID, PPID, SID, PGID, UID, EUID. The assignment then went on to ask What rep

Linux script executing from C++ code with execv fails

I've a very basic Linux script (/home/scripts/script.sh): #!/bin/bash echo 'a' | /bin/netcat -vv 10.10.10.1 3333 echo "done" > /tmp/result When I try to r

Suppressing summary information in `wc -l` output

I use the command wc -l count number of lines in my text files (also i want to sort everything through a pipe), like this: wc -l $directory-path/*.txt | sort -

How to extract value from json contained in a variable using jq in bash

I am writing a bash script which has a json value stored in a variable now i want to extract the values in that json using Jq. The code used is. json_val={"co

Can't open lib 'ODBC Driver 17 for SQL Server' : file not found

I am fairly new to Python and Azure web apps. Any help is appreciated. My setup: Program: Visual Studio code Language: Python-Flask Cloud provider: Microsoft

Test run cron entry

I added a cron job recently, but made a mistake in the path while giving the command and hence, the job never succeeded. Is there some way to test the cron chan

Script file to run in android devices with help of the sh present in adb shell

I am facing a problem in writing a shell script for android devices to be run only on sh present in the device (/system/bin/sh). I have written the following s

How to compile GTK2 source code?

I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current

How to compile GTK2 source code?

I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current

git clone and cd into it

If I wanted to make a directory and change directory into it all in one line, I could do something like this: mkdir dir_name && cd $_ How can I do the