logo
down
shadow

LINUX QUESTIONS

How do I setup Public-Key Authentication?
How do I setup Public-Key Authentication?
Hope that helps How do I setup Public-Key Authentication for SSH? , If you have SSH installed, you should be able to run..
TAG : linux
Date : January 24 2021, 02:01 AM , By : Mark
How to show a GUI message box from a bash script in linux?
How to show a GUI message box from a bash script in linux?
Any of those help I believe Zenity will do what you want. It's specifically designed for displaying GTK dialogs from the command line, and it's available as an Ubuntu package.
TAG : linux
Date : January 24 2021, 02:01 AM , By : Senthil
Mapping my custom keys in Debian
Mapping my custom keys in Debian
Hope that helps I can't say for certain because I'm not using Debian but if you're using Gnome the easiest way is to run gnome-keybinding-properties (System > Preferences > Keyboard Shortcuts)Instead of typing a shortcut such as Ctrl+M, hit the butto
TAG : linux
Date : January 24 2021, 02:01 AM , By : Thaweesak Suksuwan
How do you kill all Linux processes that are older than a certain age?
How do you kill all Linux processes that are older than a certain age?
it helps some times I have a problem with some zombie-like processes on a certain server that need to be killed every now and then. How can I best identify the ones that have run for longer than an hour or so? , If they just need to be killed:
TAG : linux
Date : January 23 2021, 02:43 AM , By : Kristian Hofslaeter
Securing a linux webserver for public access
Securing a linux webserver for public access
I wish this helpful for you This article has some of the best ways to lock things down:http://www.petefreitag.com/item/505.cfm
TAG : linux
Date : January 22 2021, 07:05 PM , By : Andrew L.
Text Editor For Linux (Besides Vi)?
Text Editor For Linux (Besides Vi)?
I hope this helps . Emacs is a wonderful text editor. It has huge power once you become a power user. You can access a shell, have as many files open as you want in as many sub-windows and an extremely powerful scripting support that lets you add all
TAG : linux
Date : January 22 2021, 02:12 PM , By : dbarbot
Shell scripting input redirection oddities
Shell scripting input redirection oddities
it helps some times A recent addition to bash is the lastpipe option, which allows the last command in a pipeline to run in the current shell, not a subshell, when job control is deactivated.
TAG : linux
Date : January 22 2021, 02:12 PM , By : Francesco
Replace each column with different spacing using sed
Replace each column with different spacing using sed
this will help sed uses POSIX Basic Regular Expressions, which are, like the name suggests, very basic, without a lot of the syntactical sugar or features of other RE packages you might be more used to. But they can still handle this:
TAG : linux
Date : January 12 2021, 09:11 PM , By : pad
How to fix Tcl 'Command not found' error while trying to puts error variable?
How to fix Tcl 'Command not found' error while trying to puts error variable?
fixed the issue. Will look into that further I am trying to execute an 'expect script' abc from another expect script xyz and capture its output in a $result variable. abc in turn executes an AppleScript whose output is something that is echo'd. In a
TAG : linux
Date : January 12 2021, 09:11 PM , By : user119413
How to find all files on a *NIX server containing a certain string
How to find all files on a *NIX server containing a certain string
around this issue grep can recurse on a given directory if you use the -r or -R flag. The second one will follow all symbolic links. The rgrep is a shortcut for grep -r.
TAG : linux
Date : January 12 2021, 08:33 AM , By : George H.
How to replace the third comma in a csv file with a space in linux using bash?
How to replace the third comma in a csv file with a space in linux using bash?
wish helps you The sed s command has a flag to specify which occurrence of a regex to apply the command to:
TAG : linux
Date : January 12 2021, 08:33 AM , By : user176691
Using sed to replace a pattern by symbol
Using sed to replace a pattern by symbol
wish help you to fix your issue How do I replace a pattern by looking at sentence symbol by using sed? , This should do:
TAG : linux
Date : January 11 2021, 03:34 PM , By : user171555
Is there a way to "escape" linux commands?
Is there a way to "escape" linux commands?
I wish this help you You can run an external command without a shell (and therefore without issues with shell metacharacters) using child_process.spawn (or other methods in child_process). (Obviously, you must not specify the shell option as anything
TAG : linux
Date : January 11 2021, 03:34 PM , By : alchemist
ImageMagick V7 and Trimming Tool for Multiple Images
ImageMagick V7 and Trimming Tool for Multiple Images
hope this fix your issue Your command works fine for me on IM 7.0.8.60 Q16 Mac OSX. This is what I did to test it.
TAG : linux
Date : January 11 2021, 03:32 PM , By : Sascha Brossmann
ImageMagick V7 and Cropping Tool
ImageMagick V7 and Cropping Tool
this one helps. It works OK for me but your dimensions are a bit off - for the result I think you wanted.Note V7 uses magick and not convert; convert uses a V6 legacy version.
TAG : linux
Date : January 11 2021, 03:28 PM , By : ziqew
Using bash, awk or sed to templatize a CSV file into a SQL file
Using bash, awk or sed to templatize a CSV file into a SQL file
may help you . I will have a CSV file (say, ids.csv) that I need to ETL into a SQL script (say, update_products.sql). The CSV will be headerless and will consist of comma-delimited numbers (product IDs in a database), for instance: , I'd probably sta
TAG : linux
Date : January 11 2021, 03:28 PM , By : user184415
Tomcat is not loading on browser after deploying geoserver WAR - Ubuntu
Tomcat is not loading on browser after deploying geoserver WAR - Ubuntu
wish help you to fix your issue This problem occurred due to some permission issues. sudo chown -R user:user /var/lib/tomcat8.In order to deploy any web apps on tomcat8 the tomcat itself should be the owner. By changing the directory permission to to
TAG : linux
Date : January 11 2021, 11:39 AM , By : nabbed
Killing subprocess from inside a Docker container kills the entire container
Killing subprocess from inside a Docker container kills the entire container
hope this fix your issue You can use process manager like "supervisord" and configure it to re-execute your script or the command even if you killed it's process which will keep your container up and running.
TAG : linux
Date : January 10 2021, 02:06 PM , By : paolodm
Embedded Linux for total beginner
Embedded Linux for total beginner
Hope that helps Depending on the device you plan on using, you may be able to emulate it using QUEMU.Even without a device, you could probably get started by reading through some of the articles on http://www.linuxfordevices.com.
TAG : linux
Date : January 10 2021, 01:57 PM , By : Tamizhvendan
Question about Modal Dialog in Gtk application
Question about Modal Dialog in Gtk application
I wish this helpful for you The alert window of firefox is modal. When you open a new window in firefox, it spawns another firefox process so you have two processes, two windows, two independent main loops.
TAG : linux
Date : January 10 2021, 01:57 PM , By : nd27182
Can I user kernel-level thread in Linux kernel v2.6 and is there any way to know thread-level of my thread?
Can I user kernel-level thread in Linux kernel v2.6 and is there any way to know thread-level of my thread?
Any of those help PTHREAD_SCOPE_PROCESS is not supported on Linux, but the pthread scope has nothing to do with whether you get a kernel-level thread or not.The modern Linux implementation of pthreads uses a 1:1 mapping between pthread threads and ke
TAG : linux
Date : January 10 2021, 01:57 PM , By : DonMac
linux kernel booting from my bootloader
linux kernel booting from my bootloader
hop of those help? Are you sure you need to write your own bootloader ?You don't call start_kernel. You don't call any function by the way. What you need is to read the kernel image into memory, put some information like the commandline into memory,
TAG : linux
Date : January 10 2021, 01:45 PM , By : rhinojosa
How to create a hex dump of file containing only the hex characters without spaces in bash?
How to create a hex dump of file containing only the hex characters without spaces in bash?
will be helpful for those in need How do I create an unmodified hex dump of a binary file in Linux using bash? The od and hexdump commands both insert spaces in the dump and this is not ideal. , xxd -p fileOr if you want it all on a single line:
TAG : linux
Date : January 10 2021, 01:45 PM , By : Thomas Gueze
Extract the file name of last slash from path
Extract the file name of last slash from path
wish help you to fix your issue There are much elegant ways to achieve the objectve. The following use awk to achieve the objectiv:
TAG : linux
Date : January 08 2021, 10:52 AM , By : artifex
unable to remove a file - terminal is splitting file name into two
unable to remove a file - terminal is splitting file name into two
it helps some times You have a space between review_ and permission.sql.In order to rm the file you need to either add \ before the space:
TAG : linux
Date : January 07 2021, 03:08 PM , By : Picoman Games
listing files in UNIX owned by a particular user
listing files in UNIX owned by a particular user
This might help you How do I list the files owned by a particular user in UNIX ?. , It should be possible to use awk togheter with ls -l
TAG : linux
Date : January 07 2021, 03:08 PM , By : Murali Ravipudi
Which docker OS base image should I use?
Which docker OS base image should I use?
it should still fix some issue Alpine Linux, because you can have advantages in cross-iaas, size, efficiency and security - one interesting point is that docker community are moving their images to be based on Alpine. Cross-IaaS: You can use it in ev
TAG : linux
Date : January 05 2021, 11:29 AM , By : user183676
Docker on Windows 2019 cannot switch to Linux OSType
Docker on Windows 2019 cannot switch to Linux OSType
This might help you So I was able to resolve this issue. I'm currently running a Linux container in Docker on a Windows 2019 server, yet the OSType still says Windows... I guess I shouldn't expect that value to ever change to Linux (on my local Windo
TAG : linux
Date : January 03 2021, 08:18 AM , By : joshski
How do I tail all files and exclude some files by wildcard name?
How do I tail all files and exclude some files by wildcard name?
To fix the issue you can do Extended wildcards are not enabled by default, you need to use shopt to enable them.
TAG : linux
Date : January 03 2021, 08:18 AM , By : sgmichelsen
Bash script command to wait until docker-compose process has finished before moving on
Bash script command to wait until docker-compose process has finished before moving on
this will help As already stated in the other answers you'll have to do an application-specific readiness-check for your container. Personally I prefer to provide these checks/scripts with the container image, e.g. by adding the wait-for-it.sh (see E
TAG : linux
Date : January 03 2021, 08:18 AM , By : TBG
Date values between two times for each day of the month
Date values between two times for each day of the month
I think the issue was by ths following , The problem with your updated example code is that in the loop condition you are effectively only checking $END_DAY_SEVEN_AM_EPOCH_DATE not to be empty - which is just set two lines above, therefore the loop b
TAG : linux
Date : January 02 2021, 10:54 PM , By : Thomas Gueze
Socket programming issue ipv6+udp
Socket programming issue ipv6+udp
fixed the issue. Will look into that further I wrote a code to generate ipv6+UDP packets, i am facing sendto() is throwing "sendto failed : Invalid argument", however with little modification, same code is working for ipv4+udp. can someone help me to
TAG : linux
Date : January 02 2021, 06:48 AM , By : Skee
How to combine multiple static libraries when the library name contains a space?
How to combine multiple static libraries when the library name contains a space?
like below fixes the issue I don't know if it is possible to use file names with a space in a MRI script. You can rename or symlink the library file foo bar.a to a name without space as a simple workaround.If you don't insist on using a MRI script yo
TAG : linux
Date : January 02 2021, 06:48 AM , By : liquidx
Aliasing a command and using it in the same line of code
Aliasing a command and using it in the same line of code
Hope this helps I think the command line is being parsed, and aliases applied, before anything is executed. However, you can do it with shell functions. I don't have PHP, but I have several Perl versions to test with:
TAG : linux
Date : January 02 2021, 06:48 AM , By : mtnmuncher
Open iTerm2 from bash script & Run commands
Open iTerm2 from bash script & Run commands
should help you out Summary , Hope It helps you. You may use the command iTerm2 instead of iTerm.
TAG : linux
Date : January 02 2021, 06:48 AM , By : user182203
How to prevent others for read /write on the file, while it is writing
How to prevent others for read /write on the file, while it is writing
this will help The flock file locking mechanism in Perl is advisory. It can be used to exclude other processes from accessing a file if those other processes are also using flock. Even this mechanism will be flaky with some systems (I'm looking at yo
TAG : linux
Date : January 02 2021, 06:48 AM , By : user184975
Crontab error: "/tmp/crontab.calJpk":5: bad day-of-month
Crontab error: "/tmp/crontab.calJpk":5: bad day-of-month
Any of those help You just have too many arguments in there. Read man -s5 crontab for more info. The fields are:
TAG : linux
Date : January 02 2021, 06:48 AM , By : davidg
Getting syntax error using awk in parallel processing
Getting syntax error using awk in parallel processing
should help you out @DudiBoy has a good solution. But to me it is annoying that I have to make another file just because I want to call GNU Parallel. So you can also use functions. This way you do not need to make a new file:
TAG : linux
Date : January 02 2021, 06:48 AM , By : Mforg
cURL Bash save response body to file
cURL Bash save response body to file
may help you . Simply remove the control operator that forces your commands to be ran in the background and asynchronously of your own script control flow.This will cause your save_log() function to be called with no arguments (because they we're in
TAG : linux
Date : January 02 2021, 06:48 AM , By : Eugenio
The most clear and concise way to describe SSH commands in .gitlab-ci.yml
The most clear and concise way to describe SSH commands in .gitlab-ci.yml
help you fix your problem Keep your commands in a separate file remote.sh without set -x and :
TAG : linux
Date : January 02 2021, 06:48 AM , By : Terrence Poon
Read/write a big file randomly - mmap on every read/write?
Read/write a big file randomly - mmap on every read/write?
like below fixes the issue Doing mmap(1) on every I/O doesn't sound like the right thing - It would confuse the code reader and possibly the kernel's optimizations, and has no benefit.You can use pread(1)/pwrite(1) or preadv(1)/pwritev(1) if you want
TAG : linux
Date : January 02 2021, 06:48 AM , By : Lior
Error while compiling for NodeMCU on Arduino IDE on Ubuntu
Error while compiling for NodeMCU on Arduino IDE on Ubuntu
around this issue You either need to install Python, or fix(re-link) the file in the Arduino IDE pointing to the Python binary.Open a terminal (ctrl+alt+T), type python at the prompt, press enter:
TAG : linux
Date : January 02 2021, 06:48 AM , By : Alex Bartzas
How to save the response body from cURL in a file when executing the command in a loop in a bash script?
How to save the response body from cURL in a file when executing the command in a loop in a bash script?
may help you . From the Curl documentation: -I, --head Show document info only Removing the -I or replace it with -i should solve your problem
TAG : linux
Date : January 02 2021, 06:48 AM , By : PatrickSimonHenk
why Linux system time adds and substracts one hour every 6 months?
why Linux system time adds and substracts one hour every 6 months?
Any of those help The date command with the %s format gives you the wall clock time in seconds from the epoch and your location has daylight savings time. So when you change to and from summer time you either gain or loose an hour.
TAG : linux
Date : January 02 2021, 06:48 AM , By : hyperNURb
How to exclude a specific file in scp linux shell command?
How to exclude a specific file in scp linux shell command?
it should still fix some issue You can use rsync with the --exclude switch, e.g.
TAG : linux
Date : January 02 2021, 06:48 AM , By : B3CFT
How to wrap lines within columns in Linux
How to wrap lines within columns in Linux
it should still fix some issue Let's pretend this is what your original script is doing given your posted sample input and the output you say you get:
TAG : linux
Date : January 02 2021, 06:48 AM , By : DonMac
How to store the output of a command that has already gone throgh pipeline
How to store the output of a command that has already gone throgh pipeline
To fix this issue Use $(...) to capture a command's output. Don't put any space around the equal sign.
TAG : linux
Date : January 02 2021, 06:48 AM , By : Steve
How to remove a certain type of files and directories from git add before commit?
How to remove a certain type of files and directories from git add before commit?
like below fixes the issue IF you have not committed yet, you can remove from the index any file you need with git reset or git rm --cached if you really want to not track them, which is the case here:
TAG : linux
Date : January 02 2021, 06:48 AM , By : glisignoli
How to check last modified date of a file in AIX using bash script?
How to check last modified date of a file in AIX using bash script?
around this issue If you can't find an appropriately specific utility, you can always fall back on perl:
TAG : linux
Date : January 02 2021, 06:48 AM , By : Paul
What does the shell "${i%,v}" mean in run-parts.sh?
What does the shell "${i%,v}" mean in run-parts.sh?
may help you . The syntax ${var%pattern} just expands to the value of $var with the glob pattern matcing 'pattern' removed from the end of the string. So ${i%,v} is just $i with the trailing ,v removed. The only difference between ${i%%,v} and ${i%,v
TAG : linux
Date : January 02 2021, 06:48 AM , By : lamberms
cat displays multi-line file content in a single line
cat displays multi-line file content in a single line
Any of those help In Linux Shell script, I am trying to trace each command status (either Success or Failure) in a log file.
TAG : linux
Date : January 02 2021, 06:48 AM , By : Arnaud Goudsmit
No module named 'tensorflow.python.platform'
No module named 'tensorflow.python.platform'
To fix the issue you can do I am using python3 and have installed tensorflow-gpu using:
TAG : linux
Date : January 02 2021, 06:48 AM , By : kakashi_
"Hash #" symbol cause the string to be split
"Hash #" symbol cause the string to be split
To fix this issue PAM interprets /etc/environment, not a shell. It's intended to be simple KEY=VALUE on each line with no need for quotes. marks a comment and there is no way to escape it. You can use /etc/profile to define your environment variable
TAG : linux
Date : January 02 2021, 06:48 AM , By : Shawazi
What are the possible list of Linux bash shell injection commands?
What are the possible list of Linux bash shell injection commands?
With these it helps Don't Use Blacklists. A blacklist of content that is explicitly disallowed in your data is just an invitation for someone to come up with a vulnerability that isn't on it, or to obfuscate their code so a regex can't match it, or t
TAG : linux
Date : January 02 2021, 06:48 AM , By : iyogee
curl is downloading the html rather than the actual zip file from gitlab
curl is downloading the html rather than the actual zip file from gitlab
around this issue This could be an authentication problem as someone mentioned in the comments (and in that case you can for example pass your personal token in the header request).If your project is public you should be able to download the archive
TAG : linux
Date : January 02 2021, 06:48 AM , By : Dré
shell scripting "test " command
shell scripting "test " command
this will help I m writing shell program to compare two numbers and show the status using test command , You have to change line
TAG : linux
Date : January 02 2021, 06:48 AM , By : n800s
Socket incoming connections can not push_back elements concurrently to a globally defined std::vector
Socket incoming connections can not push_back elements concurrently to a globally defined std::vector
To fix this issue I am new in socket programming and at this moment I am confronted with a problem that I can not solve. I have read from several sources that the C++ standard template (STL) containers are not thread-safe, so that one as a programmer
TAG : linux
Date : January 02 2021, 06:48 AM , By : chorn
escaping complicated command line arguments in bash and ssh
escaping complicated command line arguments in bash and ssh
it helps some times I am working on a bash script to retrieve uptime of a list of servers. It just reads from a file and executes a remote command on the server. Some servers may have been up for a long time while some may have just been rebooted. I
TAG : linux
Date : January 02 2021, 06:48 AM , By : iyogee
Filtering files with the given range of inputin perl
Filtering files with the given range of inputin perl
help you fix your problem It's easy enough to generate a list of the timestamps that you're interested in. In this code, I've used Time::Piece which has been part of the standard Perl distribution since version 5.10 in 2007.
TAG : linux
Date : January 02 2021, 06:48 AM , By : Longchao Dong
Save cat command output to file
Save cat command output to file
I wish this help you here are three easy options (one two are the same as my comments above): you can use regex-based text substitution in an editor like vim to edit the file, i.e. open the file, type : and run the substitution %s/^.*^K//, where ^K
TAG : linux
Date : January 02 2021, 06:48 AM , By : sep

shadow
Privacy Policy - Terms - Contact Us © scrbit.com