Tagged Questions
These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.
0
votes
0answers
5 views
Getting the number at end of the line with grep
How can I filter this text document with the grep command,to get the lines terminating with the number 59.
mohamed 400 298334432 Marrakech ingénieur
omar 13 0466342233 Agadir pâtissier
...
0
votes
1answer
5 views
Is it considered good practice to use a nxml tag in xml conf files?
I have been browsing some examples of avahi services files (XML format), and some of them had <!--*-nxml-*--> comment following the document type definition.
For example:
<?xml version="1.0"...
-4
votes
0answers
7 views
How do I install wireless adapter in Kali linux? I use kali as main OS [on hold]
I don't know how to install wireless adapter in kali linux. And I use kali linux as in persistence USB.
1
vote
0answers
5 views
Writing interrupt handler for external interrupt (IRQ 0 - 5) of ARM processor
I am trying to write an interrupt handler for LS1021A external interrupt IRQ5 using NXP QorIQ SDK 2.0. I have created a kernel module to handle the interrupt but the reset_irq function is always ...
-1
votes
1answer
14 views
Error when create a pdf file using Linux command pdftk
I am trying to create a dump 200MB PDF file for my experiment (To use it for testing my FTP implementation). The following command does not work in Ubuntu 16.04:
pdftk $(for i in $(seq 1 200); do ...
-1
votes
1answer
21 views
How to delete rows in which only the first column is full?
I have a data file looks like:
1 2 3 4
5
6
7
8 9
10 11
12 13
14
15 16 17
18 19 20 21
I want to delete all the rows in which only the first column is full. so output should be :
1 2 3 4
8 9
10 11
12 ...
1
vote
1answer
18 views
Use process status as a boolean in a bash script
I'm still new to linux scripting, but not so new to programming as a paradigm, so please forgive me if my question has a super obvious answer.
Background: I want to write a startup script that merely ...
1
vote
2answers
42 views
Is there a way to know percentage of images and code in a given directory?
Let's say you download some .zip/tar.gz or source-code of a project from somewhere. The result you will get are a random bunch of files, some having code and some having images. Is there a way to get ...
0
votes
0answers
4 views
Eclipse Plugin for Linux Tools - Man Page Plug-in not showing man page results
I am running Linux Mint 17.3. From any terminal man works fine. I am using Eclipse IDE for C/C++ Developers version Neon.1a Release (4.6.1) with CDT 9.1.0 and the Linux Tools plugin. For the Man page ...
0
votes
2answers
39 views
Modify the “cat” command to automatically number paragraphs. These are separated by a single blank line [duplicate]
What is the command to:
Modify the "cat" command to automatically number paragraphs. These are separated by a single blank line.
0
votes
0answers
8 views
Iptraf (somtimes) does not log info when run in background
I'm using Iptraf to get some statistics on my bandwidth consumption, I run the following :
iptraf -B -u -s ens33 -L /home/aymendaoudi/Desktop/test
as you can see I want the operation to stay in ...
-5
votes
0answers
17 views
right click enable from mousepad [on hold]
I am using Linux mint 18.1 v. In my mouse pad right click button is not enabled. I need to enable the right click options also in mouse pad. pls help me.
-2
votes
0answers
25 views
Finding unix and linux malware [on hold]
So I've been looking through lots of posts, On this subject (Finding unix and linux malware) but all I see is grepping php functions, Who writes unix and linux malware in php?! Anyways thats not my ...
0
votes
0answers
6 views
Suse Linux, slowing down system time to in sync with time server
Normally is the time of a Linux server (due to ntpd) in sync with the time server.
However the ntpd is running but server is now running 20 seconds ahead.
How do I slowdown the server little by little....
2
votes
3answers
65 views
need to understand the use of “/” in sed command
I want to understand the sed command
For example I have the command:
rtNum=`pwd | sed -e 's/^.*bbsp.\/rt//' -e 's/\/.*$//'`
and
rtRun=`pwd | sed -e 's/^.*bbsp.\/rt.*\///'`
where pwd is: /tfsrun/...