Why /proc/<pid>/maps shows more shared library than ldd program? Here’s an example: cksum is used to check if the files are the same. From PC side ldd cross-tool, it shows busybox depends on libc and ld only. However, in the real run-time environment, /proc/132/maps shows one more shared library, …
Decode base64 strings into hex strings in a file and overwrite
I have a list of base64 strings in a file (file.txt) that I need to convert into hex. E.g., Command: This command works individually (albeit the spaces in between), but I need to convert through each string in the file, which has more than 500 lines. Basically, I want the above base64 string format to be deco…
What configuration settings need to be done to fix Apache – MongoDB connectivity issues caused by SE Linux?
I have Apache 2.4 running on CentOS 7. SE Linux is enabled. The application uses Laravel (Lumen), and connects to MongoDB on another server. All our servers are in Google cloud.The applications fails to load the web page and lumen.log has errors like this lumen.ERROR: MongoDBDriverExceptionConnectionTimeoutEx…
Reference assemblies for framework “.NETFramework,Version=v4.7.1” were not found
I try to open a Unity3D project with VSCode under Linux (Ubuntu 18.10). The omnisharp extension doesn’t load the project, saying assemblies were not found. It may seems very stupide, but i’m not really used to .Net yet, and i have been stuck with this error for quite some days now. I have been try…
Interleave lines sorted by a column
(Similar to How to interleave lines from two text files but for a single input. Also similar to Sort lines by group and column but interleaving or randomizing versus sorting.) I have a set of systems and tasks in two columns, SYSTEM,TASK: I want to distribute the tasks to each system in a balanced way. The id…
changing two lines of a text file
I have a bash script which gets a text file as input and takes two parameters (Line N° one and line N° two), then changes both lines with each other in the text. Here is the code: It works fine for every two lines which are not consecutive. but for lines which follows after each other (for ex line 5
Apparent invocation of macro not resolved in sas filename pipe
I am using the following SAS code to find all files and their sizes under the directory &directory. Though the output data tmp is what I want, the code will give me warning. WARNING: Apparent invocation of macro S not resolved. I have tried adding an extra ‘%’ before ‘%’, i.e. but …
Bash for loop with Parenthesis working in linux and not in Git Bash
i have simple bash loop which is working fine in linux and not in local Git Bash which based on cygwin in windows i have this for loop : in Git Bash it gives me this error : linux version of bash Amazon Linux version 20xx.0x is available. [user1 ~]$ bash –version GNU bash, version 4.2.46(2)-release (x86…
How to zoom in and zoom out terminal console in linux
I am able to zoom in the Ubuntu Terminal by Pressing Ctrl – Shift and ++ . But I donot know how to zoom out the Ubuntu Terminal. Is there any short-cuts available for doing so? Answer Try this following method: Zoom In : Ctrl+Shift++ Zoom Out: Ctrl+- Zoom 100%: Ctrl+0 Hope this helps!
Why does zsh not autocomplete custom created scripts when bash does?
I have a custom created script to change my apt sources in /home/USERNAME/Scripts. I have added this path to the secure_path variable in /etc/sudoers. When I use bash to run my script as sudo it autocompletes just fine, but when using zsh it does not. Answer Because zsh doesn’t have autocompletion witho…