logo
down
shadow

LINUX QUESTIONS

sudo: effective uid is not 0, is sudo installed setuid root? (on mac os x 10.12)
sudo: effective uid is not 0, is sudo installed setuid root? (on mac os x 10.12)
will help you If you run ls -la /usr, the result most likely will be something like below:total 0 drwxr-xr-x@ 11 root wheel 374 Oct 14 14:35 . drwxr-xr-x 32 root wheel 1156 Oct 26 09:49 .. drwxr-xr-x 19 root wheel 646 Oct 10 18:51 local ... (some oth
TAG : linux
Date : November 21 2020, 11:01 PM , By : Namrata Simha
can linux run without an RTC present on an embedded platform?
can linux run without an RTC present on an embedded platform?
help you fix your problem The Raspberry Pi is an example of a Linux system with no RTC. It gets time via NTP if it is connected to the internet, otherwise it must be set manually, but it runs nonetheless albeit with possibly incorrect time/date.It is
TAG : linux
Date : November 20 2020, 11:01 PM , By : michael
What is the difference between nonpreemptive and preemptive kernels, when switching to user mode?
What is the difference between nonpreemptive and preemptive kernels, when switching to user mode?
I wish this help you In a non-preemptive kernel, schedule() is called when returning to userspace (and wherever a system call blocks, also on the idle task).In a preemptive kernel, schedule() is also called when returning from any interrupt, and also
TAG : linux
Date : November 18 2020, 11:01 PM , By : Syawqi Muhammad
Customize SHELL in Makefile (set SHELL=my_shell.sh)
Customize SHELL in Makefile (set SHELL=my_shell.sh)
With these it helps I would like to customize the shell for a Makefile, but I am running into trouble. Here is a MWE. I have a Makefile, , First, if you want to set a make variable to empty use
TAG : linux
Date : November 17 2020, 11:01 PM , By : star
Storing awk manipulation in variable
Storing awk manipulation in variable
this one helps. file.1 doesn't seem to be used. To get the lines to a variable you can do this
TAG : linux
Date : November 16 2020, 11:00 PM , By : Arjun Kapoor
What is the difference between a block of data and a page?
What is the difference between a block of data and a page?
Hope this helps A BLOCK is the basic unit of physical storage on a disk. A PAGE is the basis unit of memory allocation.The PAGE size and the BLOCK size may or may not be the same size.
TAG : linux
Date : November 15 2020, 11:01 PM , By : Hunter-Chelsea Pritc
Simulate network latency on specific port using tc
Simulate network latency on specific port using tc
hop of those help? I'm trying to simulate a fixed time latency on tcp packets coming from source port 7000 using the tc command on ubuntu. The commands I'm using are: , Try this:
TAG : linux
Date : November 12 2020, 11:01 PM , By : zhangerli
How can I record that sound going out of my speakers (not what's coming into the mic)?
How can I record that sound going out of my speakers (not what's coming into the mic)?
I hope this helps you . Revisiting this 5 months later, I finally figured it out.From the answer here:
TAG : linux
Date : November 12 2020, 11:01 PM , By : omitna94
git clone GnuTLS recv error (-9): A TLS packet with unexpected length was received
git clone GnuTLS recv error (-9): A TLS packet with unexpected length was received
I wish this help you It turns out you just need to remove git with sudo apt-get purge git but NOT with sudo apt-get --purge git for some reason it wont work if you do --purge. Now install it again by typing sudo apt-get install git. And then when you
TAG : linux
Date : November 12 2020, 11:01 PM , By : Amandeep Kaur
Script does not execute simultaneously in Linux
Script does not execute simultaneously in Linux
Hope this helps I have 10 servers and I access them using jumpbox. I wrote a script for starting a service on each server. When I execute that script it's only run on one server and after pressing Ctrl+C it's executed on the next server and so on. I
TAG : linux
Date : November 11 2020, 11:01 PM , By : coderoot
Dirty CoW mitigation on CentOS 7.2 - semantic error: while resolving probe point
Dirty CoW mitigation on CentOS 7.2 - semantic error: while resolving probe point
This might help you Yes, I have successfully implemented this temporary mitigation on CentOS 7.As described in one of the comments on that bugzilla entry, you need to install the both systemtap and the debuginfo for the kernel in order for this mitig
TAG : linux
Date : November 10 2020, 11:01 PM , By : Preneeth
Dialog: Show menu after option has been executed
Dialog: Show menu after option has been executed
wish of those help I hope someone can help me out with my query. , You can insert the dialog section into a while loop
TAG : linux
Date : November 09 2020, 11:01 PM , By : K.Jun
How permanently kill dockerd?
How permanently kill dockerd?
I hope this helps you . dockerd is common Linux daemon, nothing more than that. You should disable it the way suitable for your OS, depending on system services manager used.Here are some examples (docker service name may vary system to system). Firs
TAG : linux
Date : November 09 2020, 11:01 PM , By : Alain-Aymerick FRANC
URL breaking of at space in my shell script
URL breaking of at space in my shell script
will help you , you protected pretty much every string against spaces but not here:
TAG : linux
Date : November 09 2020, 11:01 PM , By : Rafa
Can't mount flash drive
Can't mount flash drive
will be helpful for those in need Well, I suppose I have found the solution:I've seen, that usb flash drive is appeared at /dev as hd1t11, where 11 is type of OS, in my case it is FAT32.
TAG : linux
Date : November 07 2020, 11:01 PM , By : Farjad
How to tell compiler to pad a specific amount of bytes on every C function?
How to tell compiler to pad a specific amount of bytes on every C function?
wish help you to fix your issue -pg is intended for profile-guided optimization. The correct option for this is -fpatchable-function-entry
TAG : linux
Date : November 07 2020, 11:01 PM , By : Abdelrahman Ahmed
Transfer files between raspberry pi and Multiple Linux OS computers?
Transfer files between raspberry pi and Multiple Linux OS computers?
To fix the issue you can do Maybe it's a little overdone, but you may want to check out Fabric: Generally a deployment tool, but I'm using ist to handle all of my file transfers between all my 4 Raspi's, Uploading config files and starting/stopping s
TAG : linux
Date : November 06 2020, 11:01 PM , By : Susmita Das
How would I disable accounts that have been inactive for 90 days in Linux?
How would I disable accounts that have been inactive for 90 days in Linux?
To fix this issue Working on a script that disables accounts that have been inactive for 90 days. Couldn't really find an answer after researching my problem for a few days, but I did find this command on a forum: , you can simplify this with:
TAG : linux
Date : November 06 2020, 11:01 PM , By : Ali
grep search with regex
grep search with regex
Does that help how to find a line that contains exactly 3 "w", 5 "t" and no "v" with grep?
TAG : linux
Date : November 05 2020, 11:01 PM , By : Stef H.
Rename files with spaces to underscore in all subcategories
Rename files with spaces to underscore in all subcategories
I wish did fix the issue. to @Barmar. I used command from answer https://unix.stackexchange.com/questions/223182/how-to-replace-spaces-in-all-file-names-with-underscore-in-linux-using-shell-scr/223185223185 Just make sure its in two lines
TAG : linux
Date : November 05 2020, 11:01 PM , By : sara vyas
Is there a way to have a.out loaded in linux x86_64 "high memory"?
Is there a way to have a.out loaded in linux x86_64 "high memory"?
Does that help Yes. Building a Linux x86-64 application as a position-independent executable will cause both it and its heap to be mapped into high memory, right along with libc and other libraries. This should leave the space under 2GB free for your
TAG : linux
Date : November 03 2020, 11:01 PM , By : Mark Delacruz
AWK / Linux script calculations from a text file
AWK / Linux script calculations from a text file
wish helps you I wrote an AWK script that read files and multiplies rows by columns and sum them up. I want to pass several files (any number of files) as an argument in awk script at a time e.g. A.txt, B.txt, C.txt. I want the AWK script to give me
TAG : linux
Date : November 01 2020, 11:01 PM , By : Marcelo Arroyo
Raspbian (jessie) open new terminal window
Raspbian (jessie) open new terminal window
it fixes the issue If I've understood correctly, you are doing all this only because you want the shell to be released at the execution of your cvlc.You only need to detach it from shell standard output and run it as a background process
TAG : linux
Date : November 01 2020, 12:01 AM , By : SoumiaProg
When typing 'ls' command I get 'zsh: command not found: gls'
When typing 'ls' command I get 'zsh: command not found: gls'
it should still fix some issue As seen in my edit:For some reason the update made an alias for ls='gls --color=tty', and since I do not have gls, the command was not found. I simply changed the alias to:
TAG : linux
Date : October 31 2020, 09:54 AM , By : Arnel B. Ramos
Centos 6.8 - Updates repo issues
Centos 6.8 - Updates repo issues
Does that help I am running CenotOS 6.8 x64. Whenever I am trying to install something or update my packages I get below errors: , It was time and date drift which caused it.
TAG : linux
Date : October 31 2020, 09:54 AM , By : Bautista Tusca
Parse string using shell
Parse string using shell
fixed the issue. Will look into that further I want to get NetworkActivity_5851_*_09-04-2016.done string from NetworkActivity_5851_2326316_09-04-2016.log.gz and here the code I wrote , You can do that using bash string-manipulation techniques alone.
TAG : linux
Date : October 31 2020, 09:54 AM , By : Mustafa Elkhiat
execute one command in all open tabs in a terminal
execute one command in all open tabs in a terminal
wish of those help I use a script which after execution opens different tabs and connects to different servers(using ssh). Now along with that,I want to run another command (say 'pwd').So how to do that? , You need to use SSH ability to execute remot
TAG : linux
Date : October 30 2020, 12:01 AM , By : Kareem Ali
Restoring terminal settings (termios) in signal handler
Restoring terminal settings (termios) in signal handler
it fixes the issue Signal handlers usually should be lean and not do much work. You shouldn't be calling non asynchronous-safe functions from signal-handler. Async-signal-safe functions. So, if your termios code contains non AS functions, than restor
TAG : linux
Date : October 29 2020, 12:01 AM , By : iris_hzhang
How is Stack memory allocated when using 'push' or 'sub' x86 instructions?
How is Stack memory allocated when using 'push' or 'sub' x86 instructions?
fixed the issue. Will look into that further yes, you're on the right track here, pretty much. sub rsp, X is kind of like "lazy" allocation: the kernel only does anything after a PF page fault exception from touching memory above the new RSP, not jus
TAG : linux
Date : October 24 2020, 03:08 PM , By : Bob Millar
rsyncing git project folder
rsyncing git project folder
hope this fix your issue I need to rsync a git project folder and I'm using the follow rsync flags -r -a -v -u -W but when I run git status on the destination folder it does not match with git status on the source (I get modified/deleted files that w
TAG : linux
Date : October 24 2020, 03:08 PM , By : mr lol
mimic linux grep -w in perl grep
mimic linux grep -w in perl grep
help you fix your problem grep -w matches the string only when it appears as a whole word. For that, you need to use the word boundary (\b) escape sequence in your regex.
TAG : linux
Date : October 24 2020, 03:08 PM , By : Pedro Afonso Oitaven
Send Email If Filename Exists
Send Email If Filename Exists
wish help you to fix your issue I'm trying to setup a simple one-liner to search to see if a file exists and if it does, emails me to let me know. , You can try this :
TAG : linux
Date : October 22 2020, 01:08 AM , By : Sagar Chaure
How to create GUI in dotnet core in Linux?
How to create GUI in dotnet core in Linux?
Hope that helps Bit of a late reaction. Recently started using Avalonia UI, which supports a lot of the standard WPF XAML. Also using Avalon Studio, which can be built on your Linux, if you'd like to develop on Linux, for Windows you can use a Avalon
TAG : linux
Date : October 21 2020, 01:08 AM , By : Eagle
Curl and check for 403 error code
Curl and check for 403 error code
With these it helps Here's the code I'm currently using: , Check this out :)
TAG : linux
Date : October 20 2020, 01:08 AM , By : Guoqiang
(Bash) How to monitor file changes within a directory (Creation, Deletion, Renaming)
(Bash) How to monitor file changes within a directory (Creation, Deletion, Renaming)
I hope this helps . The best way to accomplish this is probably by using the inodes of the files in the targeted directory as an identifier to track changes. For example, you could build a hash table when your script starts by storing the inode as th
TAG : linux
Date : October 20 2020, 01:08 AM , By : Ale
Counting the same lines from output
Counting the same lines from output
it fixes the issue First, you only want column 7 from the passwd file. The usernames will just get in the way. Then sort and use the uniq command to count them:
TAG : linux
Date : October 18 2020, 03:08 PM , By : Patrycjusz Nowaczyk
Why start a background process from a subshell / why parens in (someCommand &)?
Why start a background process from a subshell / why parens in (someCommand &)?
This might help you The usual reason for running it in a subshell is so that shell doesn't print a message when the background process starts and finishes.Also, if the script ever uses the wait command, it won't wait for background processes started
TAG : linux
Date : October 17 2020, 03:08 PM , By : Vladislav Guseynov
Ideal puppet repository for centos 7 distribution
Ideal puppet repository for centos 7 distribution
may help you . Go with puppet 5, as mentioned in the latest docs.Note: most of Redhat repos and packages works flawless on CentOS 7
TAG : linux
Date : October 16 2020, 03:08 PM , By : Jasmine Dontana
How to debug an upstart script that intermittently fails?
How to debug an upstart script that intermittently fails?
To fix the issue you can do Your process running nicely, BUT during system startup many things go parallel.IF mount (which makes available the /data folder) runs later than your pre-start script you will not see the "results" of pre-start script.
TAG : linux
Date : October 16 2020, 03:08 PM , By : Timorous
i want read another kernel when an error occurs
i want read another kernel when an error occurs
fixed the issue. Will look into that further This cannot be achieved in all the scenarios; However, if you want to test a new kernel for your server and fall back to old if not working, you can get. I assume you are booted with your old kernel right
TAG : linux
Date : October 16 2020, 01:08 AM , By : Kings Bridge
Unable to disasembly my app -- no debugging information found
Unable to disasembly my app -- no debugging information found
I hope this helps . Asking fasm to directly produce an ELF binary without the use of a linker will only create segments but no sections in the output. This confuses some tools. In particular objdump -d is specifically documented to operate on section
TAG : linux
Date : October 15 2020, 03:08 PM , By : Yuri chabur sanchez
How to use "tee" with "source" command in Linux?
How to use "tee" with "source" command in Linux?
help you fix your problem Problem solved; many thanks goes to @thatotherguy in leading me to the solution. The log output was actually deleted by the make clean process. After fixing the clean stuff in the makefile, everything is good.
TAG : linux
Date : October 15 2020, 03:08 PM , By : William Jensen
Qt 5.5 not binding to port
Qt 5.5 not binding to port
I wish this helpful for you You can get further information from the socket by accessing m_recvSocket->errorString(). In your case, modify the cout line to be:
TAG : linux
Date : October 15 2020, 03:08 PM , By : Jason Augustine
rhash -M argument not working in zsh on macOS
rhash -M argument not working in zsh on macOS
Does that help Not familiar with rhash, but it seems to generate an MD5 sum, so on a Mac, you can do:
TAG : linux
Date : October 14 2020, 09:39 AM , By : taysand
How to manually download, compile and install the tiff5 library on ubuntu 16.04 without root permissions?
How to manually download, compile and install the tiff5 library on ubuntu 16.04 without root permissions?
Any of those help You can try to download the libtiff5 package from https://packages.ubuntu.com/trusty/amd64/libtiff5/download, unpack it, place the libs from usr/lib/x86_64-linux-gnu directory somewhere (i.e. /home/user/custom_libs), and add it to L
TAG : linux
Date : October 14 2020, 09:38 AM , By : Kevin Zhang
shadow
Privacy Policy - Terms - Contact Us © soohba.com