logo
down
shadow

LINUX QUESTIONS

How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script?
How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script?
Hope this helps You can use tr to convert from DOS to Unix; however, you can only do this safely if CR appears in your file only as the first byte of a CRLF byte pair. This is usually the case. You then use:
TAG : linux
Date : November 27 2020, 07:01 PM , By : user3863877
Installing sSMTP from SSH
Installing sSMTP from SSH
should help you out use rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
TAG : linux
Date : November 27 2020, 07:01 PM , By : federico.orta
Passing lines as args to a script
Passing lines as args to a script
I hope this helps . How do I pass each line from a text file as an argument to a script I have written? So each line is then in itself a single arg to the script each time.
TAG : linux
Date : November 26 2020, 07:01 PM , By : Akash Sinha
Create setup for Linux C project
Create setup for Linux C project
hop of those help? There are two general ways to distribute programs: Source Distribution (source code to be built). The most common way is to use GNU autotools to generate a configure script so that your project can be installed by doing ./configure
TAG : linux
Date : November 25 2020, 07:01 PM , By : user3863084
Move/copy files/folder in linux/solaris using only bash built-ins
Move/copy files/folder in linux/solaris using only bash built-ins
To fix the issue you can do There was a situation when somebody moved the whole rootdir into a subdir on a remote system, thus all the system tools like cp, mv, etc didn't work anymore. We had an active session though but couldn't find a way to copy/
TAG : linux
Date : November 24 2020, 07:00 PM , By : zee1
LD_LIBRARY_PATH : how to find a shared object
LD_LIBRARY_PATH : how to find a shared object
this will help I have a shared object ( libxyz.so ). Given LD_LIBRARY_PATH, how can find the exact location of this shared object? If i had a binary that depends on this lib, i would have used ldd on that. , Put this in a file:
TAG : linux
Date : November 24 2020, 07:00 PM , By : tandtproductions011
How do I recover a corrupted dnf database?
How do I recover a corrupted dnf database?
fixed the issue. Will look into that further I just killed a dnf process as it was not responding to ^Z , So simple I found the solution.
TAG : linux
Date : November 23 2020, 07:00 PM , By : Tom
setitimer, SIGALRM & multithread process (linux, c)
setitimer, SIGALRM & multithread process (linux, c)
around this issue From signal(7) man page:
TAG : linux
Date : November 23 2020, 07:00 PM , By : MsUlmer
Is there any flash driver at the OS level loaded?
Is there any flash driver at the OS level loaded?
this will help I can't think of a connection scenario where Linux would not see the media. Additionally, I can't see a scenario involving a file system on it that was not supported.What remains is how your kernel was compiled. Without additional info
TAG : linux
Date : November 23 2020, 07:00 PM , By : mehoc
Seeing what files are run at startup (linux)
Seeing what files are run at startup (linux)
wish help you to fix your issue How do a check what startup scripts are run after I ssh into a machine? , You may try this, if your remote login shell is bash
TAG : linux
Date : November 22 2020, 07:01 PM , By : user3862208
how do i claim a low-numbered port as non-root the "right way"
how do i claim a low-numbered port as non-root the "right way"
wish of those help The "something you don't know about" is "capabilities", but as mentioned elsewhere capabilities don't play very well with scripts using the shebang method, so it's not much of an answer here. I would go with the "bind the port, the
TAG : linux
Date : November 21 2020, 07:01 PM , By : user3861871
docker-compose up and user inputs on stdin
docker-compose up and user inputs on stdin
wish of those help docker compose up and user inputs on stdin
TAG : linux
Date : November 20 2020, 07:00 PM , By : Nathan Rouwhorst
How to convert PE(Portable Executable) format to ELF in linux
How to convert PE(Portable Executable) format to ELF in linux
hope this fix your issue It is possible to rebuild an EXE as an ELF binary, but the resulting binary will segfault very soon after loading, due to the missing operating system.Here's one method of doing it.
TAG : linux
Date : November 20 2020, 07:00 PM , By : Soumava.Dutta
need help with installing shared libraries on linux
need help with installing shared libraries on linux
This might help you ldconfig creates, updates, and removes the necessary links and cache (for use by the run-time linker, ld.so) to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf,
TAG : linux
Date : November 19 2020, 07:01 PM , By : Matt Davies
Retrieve available Wifi networks on Ubuntu
Retrieve available Wifi networks on Ubuntu
hop of those help? I'm starting to learn Ubuntu 9.10. How can I retrieve all available Wifi networks programmatically? Can someone give an example?
TAG : linux
Date : November 16 2020, 07:01 PM , By : Hemalatha
linux new/delete, malloc/free large memory blocks
linux new/delete, malloc/free large memory blocks
seems to work fine You'll have 3Gb of address space at your disposal if this is a 32 bit machine - 1Gb is reserved for the kernel.Out of that, quite a bit of address space will be taken by shared libraries, the exe file, data segment etc. You should
TAG : linux
Date : November 15 2020, 07:01 PM , By : Airmanbzh
On which platforms does libc store stack cookie values somewhere other than __stack_chk_guard?
On which platforms does libc store stack cookie values somewhere other than __stack_chk_guard?
This might help you Do a grep -B1 of TARGET_THREAD_SSP_OFFSET define from gcc sources (or do this grep online with google codesearch http://www.google.com/codesearch?q=TARGET_THREAD_SSP_OFFSETexact_package=http%3A%2F%2Fmosync.googlecode.com%2Fsvnhl=e
TAG : linux
Date : November 15 2020, 07:01 PM , By : Superkame
Any porting available of backtrace for uclibc?
Any porting available of backtrace for uclibc?
seems to work fine Update:It seems that a patch was created to support backtrace() on uclibc for x86 and ARM (XScale) and it makes use of the __libc_stack_end symbol.
TAG : linux
Date : November 15 2020, 07:01 PM , By : user3859792
compiling boost based application using cron
compiling boost based application using cron
I hope this helps . cron jobs will run with a much reduced environment. So you need to determine which environment variables (PATH, LD_LIBRARY_PATH etc.) your compile depends on, and then reflect those variables in the shell script you're invoking fr
TAG : linux
Date : November 14 2020, 07:01 PM , By : user3859616
How can I find file system concurrency issues?
How can I find file system concurrency issues?
To fix this issue Hmmm. Concurrent access to files is perfectly legitimate on Posix-like systems so there is no kind of "failure" mode associated with it. Is there a reason you can't use file-locking on Linux? It's difficult to tell from your descrip
TAG : linux
Date : November 13 2020, 07:01 PM , By : user3859258
How can I add a directory to the Perl library path at the system level?
How can I add a directory to the Perl library path at the system level?
around this issue If you want every Perl script to have the additional library paths, you can re-compile Perl and specify the extra directories as part of the setup. Other than that, you're stuck with the ad hoc methods as you describe.
TAG : linux
Date : November 12 2020, 07:00 PM , By : nobody
Make runs cc and I don't understand why
Make runs cc and I don't understand why
To fix the issue you can do A simple answer is make's behavior. But it doesn't give understanding how it works, so let's go deeper.We begin with the first Makefile. Because my directory has only one file fizzbuzz.s, the variable BIN will be equal fiz
TAG : linux
Date : November 11 2020, 07:00 PM , By : Mars
How to read directory using jQuery .ajax()?
How to read directory using jQuery .ajax()?
like below fixes the issue You're going to need some sort of server side code to generate a list of files/folders within a directory. Your web server is most likely redirecting that request to either the default page for the directory (index.html, de
TAG : linux
Date : November 11 2020, 07:00 PM , By : user3858615
Framebuffer Documentation
Framebuffer Documentation
hope this fix your issue You could have a look at fbi's source code, an image viewer which uses the linux framebuffer. You can get it here : http://linux.bytesex.org/fbida/
TAG : linux
Date : November 09 2020, 07:01 PM , By : minglo04
Implementations of Mobile IP on linux
Implementations of Mobile IP on linux
Hope that helps It appears likely to me that it can be done without requiring any kernel code at all, you can achieve it by having a userspace daemon create a tun interface (much like a VPN client would typically do) and then route or encapsulate pac
TAG : linux
Date : November 06 2020, 07:00 PM , By : Henrik Aleksander No
Scripts like ideone.com and codepad.org
Scripts like ideone.com and codepad.org
To fix the issue you can do I don't think that they have special "autocompiling scripts". They could just be using normal compilers under a virtual machine for safety. Or they could have developed something custom (Like Google app engine)
TAG : linux
Date : November 06 2020, 07:00 PM , By : Sassou
Rapports in a log file with a script shell (linux batch) and redirection
Rapports in a log file with a script shell (linux batch) and redirection
This might help you you should define your TRACES variable. Also, use $() instead of backticks whenever possible.
TAG : linux
Date : November 05 2020, 07:01 PM , By : flopez
How can I diff two files and report the section the diff occurs in?
How can I diff two files and report the section the diff occurs in?
With these it helps I have two text files with several sections in them. Each section has has a header with the section name (grep can extract all the section names without extracting anything else from the file). How can I report the differences bet
TAG : linux
Date : November 04 2020, 07:01 PM , By : Vaishali Joshi
Is D-Bus a middleware IPC?
Is D-Bus a middleware IPC?
Hope that helps Firstly, and it’s slightly picky, but probably relevant enough to mention: ‘D-Bus’ is a protocol which is typically used with a message bus daemon (typically dbus-daemon, but other implementations have been written). It is possible to
TAG : linux
Date : November 03 2020, 07:01 PM , By : MWalker
Unzip a bunch of zips into their own directories
Unzip a bunch of zips into their own directories
will help you I have a bunch of zip files I want to unzip in Linux into their own directory. For example:
TAG : linux
Date : November 03 2020, 07:01 PM , By : Robert Heath
Is there assembler REPL under linux?
Is there assembler REPL under linux?
This might help you Linux isn't supported yet, but if someone needs an assembly REPL for OS X, I have created one: https://github.com/Tyilo/asm_replUpdate: Rappel seems to be what you are looking for: https://github.com/yrp604/rappel
TAG : linux
Date : November 03 2020, 07:01 PM , By : Gerd Eist
can't get syntax highlighting to work with R code in vim
can't get syntax highlighting to work with R code in vim
seems to work fine Try adding this line to the file filetype.vim. filetype.vim is generally located in the folder ~/.vim. Create the file if it doesn't exist.
TAG : linux
Date : November 03 2020, 07:01 PM , By : richa loohach
Easy to use AutoHotkey/AutoIT alternatives for Linux
Easy to use AutoHotkey/AutoIT alternatives for Linux
will be helpful for those in need I'd recommend the site alternativeto.net to find alternative programs.It shows three alternatives for AutoIt: AutoKey, Sikuli, and Silktest. AutoKey seems up to the job.
TAG : linux
Date : November 02 2020, 07:01 PM , By : user3855786
Add same files to multiple PACKAGES
Add same files to multiple PACKAGES
it fixes the issue You can't put the same file in multiple packages. There's no need: why can't PN depend on PN-custom?
TAG : linux
Date : October 29 2020, 08:01 PM , By : อณาวิน รัตนไพศาล รัต
Touchpad access in Linux
Touchpad access in Linux
hope this fix your issue Usually you access the pointing devices via the X11 system and the X11 XInput extension. Only the X11 server will access the /dev/input file. The X11 server will allow many applications to share the input devices in a control
TAG : linux
Date : October 28 2020, 08:00 PM , By : Junaid Jadil
Getting a symbolic link full path
Getting a symbolic link full path
I think the issue was by ths following , Use a method that doesn't check the file system such as File::Spec::Functions's rel2abs.
TAG : linux
Date : October 28 2020, 04:55 PM , By : Osman ÖLGEN
How to write ONE line of command that scp all the sub-directories in a directory to a remote machine
How to write ONE line of command that scp all the sub-directories in a directory to a remote machine
To fix this issue something like:
TAG : linux
Date : October 28 2020, 04:55 PM , By : Antonio Velazco Aval
Creating an installer for Linux application
Creating an installer for Linux application
it helps some times The standard all mighty universally available installer on *nix systems (and not only) is Autotools.
TAG : linux
Date : October 28 2020, 04:55 PM , By : user3853723
why bash changing my command 'mysql*' to 'mysql.sql'?
why bash changing my command 'mysql*' to 'mysql.sql'?
around this issue There is a file called mysql.sql in the current directory of the script.Quote the argument to avoid bash expanding it, so that yum can.
TAG : linux
Date : October 25 2020, 07:10 PM , By : vilant
Sorting the time format in shell script
Sorting the time format in shell script
To fix the issue you can do I have a file containing alerts occurence time. I want to sort those in ascending order. Can you please guide me about this. , Maybe not super elegant, but straight forward in Python:
TAG : linux
Date : October 24 2020, 06:10 PM , By : Ryan Furlong
Is it possible to partially unzip a .vcf file?
Is it possible to partially unzip a .vcf file?
wish help you to fix your issue Double check your command line for bcftools view.
TAG : linux
Date : October 23 2020, 06:10 PM , By : Sergey
How to fix error "'recipe for target "doc/automake-1.14.1' failed" while building Xenomai
How to fix error "'recipe for target "doc/automake-1.14.1' failed" while building Xenomai
This might help you This issue was fixed on September 11, 2014 by commit 2020ddbd0f2c32863e6be69a235852a088744c28. Please use an up-to-date version of Buildroot.
TAG : linux
Date : October 20 2020, 06:10 PM , By : F Kemery
no module named numpy even after installing it
no module named numpy even after installing it
it helps some times You should check if you installed NumPy for Python version you actually try to use. The easiest way is to list two directories: ls -la ~/.local/lib/python2.7/site-packages/ ls -la ~/.local/lib/python3.5/site-packages/
TAG : linux
Date : October 19 2020, 06:10 AM , By : user6021201
Breaking out of nested function loops in Bash
Breaking out of nested function loops in Bash
I hope this helps . Don't play with nested logic break, just use some variable like $userStop and instead of while true; do put
TAG : linux
Date : October 17 2020, 06:10 PM , By : Ahmed Mahmoud
Does read/write blocked system call put the process in TASK_UNINTERRUPTIBLE or TASK_INTERRUPTIBLE state?
Does read/write blocked system call put the process in TASK_UNINTERRUPTIBLE or TASK_INTERRUPTIBLE state?
around this issue With read(2) or write(2) family syscalls, the type of sleep depends on the type of file that is being accessed. In the documentation you quoted, "slow" devices are those where a read/write will sleep interruptibly, and "fast" device
TAG : linux
Date : October 16 2020, 06:10 AM , By : Emanuel Acevedo
How to create a 3 second timer in Bash?
How to create a 3 second timer in Bash?
it should still fix some issue I created a task manager for linux with shell script I need to refresh the task manager every 3 seconds I was thinking of using Timer function but got stuck , Replace
TAG : linux
Date : October 16 2020, 06:10 AM , By : Javier
How does logrotate work when there are two process use the same file?
How does logrotate work when there are two process use the same file?
it should still fix some issue This is very tightly related to how POSIX filesystems work. When you rename a file, it's only the name of the file that is changed, the physical file on the disk will not change. Also, once a file is opened, the process
TAG : linux
Date : October 15 2020, 06:10 AM , By : Seif HadjHassen
Got error while Mounting, error massage:"mount.nfs: remote share not in 'host:dir' format"
Got error while Mounting, error massage:"mount.nfs: remote share not in 'host:dir' format"
wish helps you You are missing the exported remote share. Let's say you have exported /var/share as a share, then your mount command would be
TAG : linux
Date : October 15 2020, 06:10 AM , By : Avalanchica
GitLab-Runner "listen_address not defined" error
GitLab-Runner "listen_address not defined" error
help you fix your problem I have literally wasted 2 days on this subject. I have followed the below steps to get the runners configured and execute jobs successfully.I am using Mac OS X 10.13 and Git Lab 12. However, people with other OS also can che
TAG : linux
Date : October 14 2020, 06:10 PM , By : Kyushuu
Linux device driver for a gps module
Linux device driver for a gps module
fixed the issue. Will look into that further The ublox GNSS receiver support seems to be available from 4.19 Linux kernel release. You can see the driver here and it's device tree compatible ID's points to the support of ublox Neo M8 here.Also have a
TAG : linux
Date : October 14 2020, 02:00 PM , By : Walden Blue
Command for printing part of a String?
Command for printing part of a String?
wish help you to fix your issue I have a file name test, it contains a String James Bond 007, and i want to print only James Bond. I tried the following commands: , To print the first two words, you can use awk:
TAG : linux
Date : October 14 2020, 02:00 PM , By : Catarina Martins
How to make the query work in linux server?
How to make the query work in linux server?
wish of those help I have an database in PostgreSQL called "myDatabase" which has hundreds of schema and which is installed in Linux server. I am using this DB for an SAAS application. Which has multiple schema users. I want to update a column value
TAG : linux
Date : October 14 2020, 01:00 PM , By : jens knudsen
How to enable CONFIG_RT_GROUP_SCHED in Ubuntu to make it RT
How to enable CONFIG_RT_GROUP_SCHED in Ubuntu to make it RT
With these it helps Step 1Download linux kernel from https://www.kernel.org/pub/linux/kernel/. For the purpose of this PoC we downloaded linux-4.16.18.tar.gz kernel from above link.
TAG : linux
Date : October 14 2020, 01:00 AM , By : islam mohammad saifu
How to remove a file called * (asterisk) without using quotations?
How to remove a file called * (asterisk) without using quotations?
seems to work fine I think you're supposed to work this out yourself :-)The simplest solution not involving quoting is to use the pattern [*]. Bracket expressions in a shell work much like character classes in regular expressions so that will match a
TAG : linux
Date : October 13 2020, 09:00 PM , By : brainzzz
Pipe stdout to with multiple lines to individual files
Pipe stdout to with multiple lines to individual files
may help you . I have a kafka consumer that deserializes avro messages and prints to stdout. I want to pipe the output into files, but want a separate file for each message - not all of the messages in a single file. , Use the split with option l (li
TAG : linux
Date : October 13 2020, 08:00 PM , By : Fred Hitts
How to use case to identify a specific pattern in BASH script
How to use case to identify a specific pattern in BASH script
should help you out I'm trying to identify several folders in my script that run from 101-121. The script is written to look through one specific folder at a time.
TAG : linux
Date : October 13 2020, 07:00 PM , By : Vernon Hills Account
numeric variable in egrep regular expression bash script
numeric variable in egrep regular expression bash script
Hope that helps Your script doesn't work because there are several problems with these lines:
TAG : linux
Date : October 13 2020, 06:00 PM , By : rafael pieters
How to make find . -name "*.txt" | xargs grep "text" to work with filename with spaces
How to make find . -name "*.txt" | xargs grep "text" to work with filename with spaces
fixed the issue. Will look into that further , try this:
TAG : linux
Date : October 13 2020, 03:00 PM , By : Steve M
sed only print substring in a string
sed only print substring in a string
wish help you to fix your issue I am trying to get a substring in a string that is in a large line of data. The regex (INC............) matches the substring I am trying to get the value of at https://regexr.com/, but I am unable to get the value of
TAG : linux
Date : October 13 2020, 02:00 PM , By : tpkeeper
How can I use Bash to contract/shrink a set of values
How can I use Bash to contract/shrink a set of values
Hope that helps Let's say I have values , Perl one-liner for value-al-{keddka, aljdf;, dkdl;a} output:
TAG : linux
Date : October 13 2020, 11:00 AM , By : Sepideh Aghvami

shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk