Skip to content

Overlapping mappings for loaded ELF segments

I’d like to understand a detail of how the dynamic loader creates mappings for ELF segments. Consider a tiny shared library linked with GNU ld. The program headers are: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x00095c 0x00095c R E 0x2000…

Printing full path of directories

I am trying to get full paths of folder and print them into a into a file. I have been using this command to get paths. But they are not proper. Ex. When trying to print path of Documents/Folder/Folder2 comes as Documents/folder2 instead of proper path. I have tried going over directory using for loop and pri…

How can l start postgresql database using linux crontab?

postgresql database is starting in this way. but when I use linux crontab to start postgresql,it has failed. postgresql is not starting. I want to know why. Thank you! Answer You need to define which PostgreSQL instance to start. Try to add -D “PGDATA”. For example: If your Linux distribution is u…

Ubuntu initial configuration script errors

I’m newbie to linux and I’m trying to make an initial configuration script for basic users passwords, SSH rules and system config of Hostname & timezone as below, But I’m getting below errors, I couldn’t figure it out. Anyone could help me plz Thanks, Answer I’ve found this o…

Find all files above a size and truncate?

Running cPanel on a server with various customer accounts under the /home directory. Many customers’ error_log files are exceeding a desired size (let’s say 100MB) and I want to create a cron job to run daily to truncate any files over a certain size. I know truncate can shrink files but it will e…

making a Hotel management system in BashScript

I am unable to correct the error. I have tried searching on Google but i can’t figure out what my output is referring to. Its giving a line number but the code is right there. “fi” is used at the end of IF statements in scriptfiles. This is my code I am attaching the output too Error while r…