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.

learn more… | top users | synonyms

0
votes
0answers
11 views

how the ping implementation calculating the round trip time?

I was learning about the ping implementation. In that I had one doubt. The doubt is, how they calculating the round trip time. They done some calculation to calculate the round trip time. I am not ...
-4
votes
1answer
16 views

Everything before the # should be deleted. How can I do that automatically?

I have a shell script. How can i remove anything before # this line Everything before the # should be deleted. The script is too long to delete it manually. How can I do that automatically? ...
1
vote
1answer
17 views

If there are more than x number of pipes in a csv line, then delete the 2nd instance

I have a csv file which is supposed to contain 4 columns of data which include a product number, a title, a url and a price. Each column is separated by a | delimiter (this has to be maintained, there ...
0
votes
0answers
15 views

Good squid documentation + question [on hold]

I have a question concerning the logic used in the configuration of squid server. I was wondering how squid_acl, squid.conf, squid_whitelist.conf and squid_lans.conf interact, I was trying to look for ...
1
vote
2answers
15 views

How to extract files to “/usr” directory without overriding other files?

I download swift installation package, and extract it into my home directory: # tar -C / -xvf swift-2.2.1-RELEASE-ubuntu14.04.tar.gz swift-2.2.1-RELEASE-ubuntu14.04/usr/ ...
0
votes
0answers
12 views

Applying a patch to mdadm

I have configured RAID 6 using mdadm, and after trying to add a new disk to the ARRAY (replacing a faulty one), I am receiving the following error: mdadm --manage /dev/md0 --add /dev/sdi mdadm: ...
3
votes
1answer
44 views

Why ping receives another ping command packet?

I am learning about the ping implementation in C. The problem is, I was using a raw sockets to receive the packet. For all packets we have a identification value in ICMP header. I was running the ...
0
votes
2answers
21 views

What does %h and other symbols like it mean? [on hold]

I have seen % and then some letter for example %h in config files in Ubuntu and in other Linux distributions but I do not know the names of them or what they all do, so I am just wondering if there is ...
0
votes
0answers
4 views

having troubles booting yumi multiboot on my windows 10 pc with a sandisk ultra usb 3.0 flash drive

I have been trying to multi-boot Linux distros on my MSI WS60 Windows 10 pc with a new 64gb Ultra 3.0 SanDisk flash drive. I have tried to troubleshoot the fast boot with Windows 10 and format the ...
0
votes
0answers
11 views

Unknown job error on running service

I am getting an 'unknown job' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I just cannot run start, ...
1
vote
0answers
23 views

How to prevent the latest ImageMagick vulnerability? [migrated]

According to the CVE-2016–3714 there are a some vulnerabilities in the ImageMagick program (4 packages) : Insufficient filtering for filename passed to delegate's command allows remote code ...
1
vote
0answers
8 views

Changing readahead value using blockdev command

I am trying to modify read ahead value using blockdev. When I issue this command blockdev --setra xxx /dev/sda - it changes the readahead value of the entire partition in that device, which is fine. ...
0
votes
0answers
16 views

mysqld_safe touch: cannot touch ‘./mysql/data/*.err’: Permission denied

I am trying to install mysql binaries 5.6.22 (to non /usr/local but to same folder it was unpacked) for linux x64; the thing is according to install instructions ; But after os freezed I had to reboot ...
0
votes
2answers
33 views

How to burn an iso image from the command line

Is that possible to get an alternative to the command dd to burn an iso image including some options: Detect the burning device , Burn an iso image and eject the CD from the command line?
1
vote
0answers
19 views

Remove route from routing table by position

I know how to delete a route from a routing table providing all of the route's details (ip r d ...). Is there any way to list routing table with some kind of indexes and then delete from its ...
0
votes
0answers
18 views

After install vnc4server xsession error on Linux Mint 17.3

the second time this problem haunts me, (in RASPBERRY and now my Dear Mint 17.3) Briefly my problem is the following: I do the standard procedure found on Google: sudo apt-get install vnc4server ...
-1
votes
1answer
26 views

What is the use of mdev in ping?

I am learn about the ping command and their options. The ping command finally prints the statistics. $ ping google.com PING google.com (216.58.199.174) 56(84) bytes of data. 64 bytes from ...
-1
votes
1answer
23 views

what is the use of -U option in ping command?

I was learning ping command and their options. In ping -U option is used for full user to user latency. There is no difference for ping and ping -U option in output. $ ping google.com PING ...
4
votes
5answers
87 views

How do I sort on the first column every 4 lines in a file with a key in the second column

Example File : first column can have fixed set of 4 unordered values world1.com,world2.com,world3.com or world4.com second column is a key belongs to each line such that each of the four sets has ...
1
vote
1answer
16 views

What is the use of socket buffer size in ping?

I am learn about the ping command implementation. In that I had a one doubt. The doubt is I know the socket buffer is for how many bytes transfer at a time in the socket. But how the ping command ...
1
vote
1answer
17 views

Control fans of Samsung NP900X3E

I have a Samsung NP900X3E laptop and I would like to control the fans as one of them is making weird noise. I'm running Ubuntu 14.04.4 LTS with "Linux laptop 3.13.0-85-generic #129-Ubuntu SMP Thu Mar ...
0
votes
2answers
20 views

Is sysfs a strict subset of procfs? [duplicate]

Is the information that the Linux kernel provides to the user via sysfs a strict subset of the information that the Linux kernel provides to the user via procfs? If not, then which information is ...
2
votes
1answer
38 views

How to hide a specific process?

The command hidepid is used to prevent users from seeing all processes that do not belong to them, but it doesn't offer the possibility of selecting a specific process. Is it possible to hide only one ...
2
votes
3answers
31 views

linux + ssh + perform two tasks in one ssh and print to CSV

the following command print the two values in one ssh shut ssh test01 "hostname && cat /etc/sysconfig/rhn/rhnsd " test01 INTERVAL=240 but how to change the syntax in order to print the ...
0
votes
0answers
22 views

Does Tails OS have binary blobs in its kernel, and how much does it matter? [on hold]

Tails is a distribution which has maximum privacy as its main goal. It was famously used by Mr. Edward Snowden prior to his leaking of documents. Is this distribution 100% open source, or are the ...
2
votes
1answer
24 views

why do I find (under /proc/pid//fd) sockets with broken symlinks

I don't think they're closed, because I would expect that after a close() the fd would disappear, but I see a bunch of lingering fd -> socket[xxxxx] entries with broken symlinks which don't seem to be ...
1
vote
1answer
29 views

Rc.local not running commands properly

I am running arch Linux and have used this rc-local service: [Unit] Description=/etc/rc.local compatibility [Service] Type=oneshot ExecStart=/etc/rc.local RemainAfterExit=yes [Install] ...
0
votes
1answer
19 views

How mount a svfs file system with user permissions? (without sudo)

In the context of an application that transfers some files to an ovh storage, and I am experiencing some problems mounting a fuse file system. This is the structure of my mount point in fstab ...
3
votes
1answer
31 views

How to call a binary outside PATH

I recently downloaded Master PDF Editor. It's a proprietary software for Linux and the archive contained bascically only a *.desktop file and the actual binary. Looking at the *.desktop file, the ...
0
votes
1answer
24 views

How to get a correct error code from curl when transfer was closed before getting the whole file

I have a bash-script which calls curl using a proxy. Today there is a problem with the download location. Calling curl ends up with: curl: (18) transfer closed with 7512708716 bytes remaining to ...
3
votes
1answer
33 views

How does the kernel assign cpu ids to physical cores?

One may find a lot of info about how to inspect physical cores layout in a running linux system, but I'm wondering how the physical cores are assigned a cpu id in the first place. After experiencing ...
5
votes
1answer
45 views

-T option result in ping command

I was learning about the ping command. I am not able to understand the output of ping command with -T tsonly and -T tsandaddr. The output is: $ ping -T tsonly 192.168.1.52 PING 192.168.1.52 ...
2
votes
0answers
14 views

How do I extract the initramfs from a kernel image? [duplicate]

An initramfs, as opposed to an initrd, is built-in to a kernel file. How do I go about extracting and unpacking an initramfs from a given kernel file?
-1
votes
0answers
24 views

What does the second column of ls -l mean? [duplicate]

I have been looking to find out what the second column of ls -l means. I see some say it is the total links to that file. However, I tested this and it doesn't seem to work that way. This number ...
3
votes
3answers
75 views

Display files to size with lower and upper bound without using `find`

I need to create a program via vim in Linux called between. The script takes two arguments as the lower bound and upper bound of the file size, and prints out a list of file names as well as their ...
1
vote
1answer
35 views

rsyslog - what host is sending these files?

I'm working on an pre-existing installation of rsyslog. I am not sure what remote hosts are sending log files to the server. Some of the folders have unhelpful names like 'last', 'Server', 'syslogd', ...
0
votes
0answers
23 views

Symlink - what i need to know?

I have a Website with a CMS under the folder /var/www/html/mysite My admin made a symlink once, so when you request my URL, you will be redirected to the folder mysite. I have now created a copy ...
0
votes
1answer
22 views

Warning : configuration file not found

I just made a bootable usb drive with kali linux 2016.1 (rolling) with dd command. After booting in the usb drive it gives me this thing : Warning : configuration file not found. I can select ...
0
votes
0answers
10 views

drop rate of the err_queue

In Linux, when requesting the TX timestamp of the sent packets, the err_queue is used to piggy back this information. Is there any way in C to inspect if this queue is full at some Point in time? ...
1
vote
1answer
43 views

Memory not used any more but still allocated

I have something kind of weird going on with memory. I have Ubuntu 14.04 servers with Zimbra 8.6 with kernel (for this one) 3.13.0-37-generic. But I have already seen the problem with other kernels. ...
1
vote
1answer
60 views

how to know the status of a command?

I guess this is a very naive question over even stupid question. That is how to tell whether previous command was successfully carried out or not. I know one way is to use echo $? command: ...
2
votes
1answer
22 views

Debian : Installing Coturn causing error, and package not getting removed.

I am working on install Coturn which is an open-source Stun and TURN server. For that, I had two options, one was to download the debian package and install it by gdebi, and other was to make the ...
-1
votes
0answers
36 views

How to compare two tables in Linux using shell scripting? [duplicate]

I have two database one is "old-tables" and one is "new-tables". We have made some changes in "old-tables" database. then updated "old-tables" database we are calling it "new-tables" database. ...
-1
votes
2answers
45 views

How to compare two tables and find the difference between in Linux using shell script?

I have two release one is old and one is new. I have to compare old release DB and new release Db and find out all the difference. like if old release and new release have same table so what they made ...
-5
votes
1answer
16 views

Best installation instructions for Linux Mint for total Linux newbie? [on hold]

Where i can find simplest instructions for total Linux newbie how to install Linux Mint?
0
votes
1answer
35 views

Fan Speed in Macbook running Linux

I am currently running arch on an older generation macbook; 2009 with a core2duo processor. One of the common issues with the machine is that it runs hot (70-90 while browsing and playing videos on ...
-3
votes
2answers
26 views

Describe Linux Project Setup and File Purposes [on hold]

Where can I find online references that describe a Linux/Unix project setup? Its quite surprising that googling for this is turning up little useful references or tutorials. I am looking for ...
0
votes
0answers
6 views

precise linux video / youtube locks up why? [on hold]

Since I went to Puppy Precise Linux my screen locks after a few minutes watching YouTube or similar sorts of video or audio. I must then restart the X server to break free. Sometimes I must press ...
2
votes
0answers
13 views

Unable to run Virtualbox properly on Kali Linux Rolling because of KERN_DIR error [duplicate]

I added the repo for Virtualbox to my sources.list deb http://download.virtualbox.org/virtualbox/debian wheezy contrib Afterwards, I installed DKMS and Virtualbox-5.0. When I run virtualbox, this ...
4
votes
1answer
99 views

Why does my cpu never get past 60-70% cpu usage? Where is the bottleneck?

In my CPU graph thingy, I have noticed recently that when compiling stuff I can never seem to reach 100% usage, it just keeps bobbing up and down around 60-70% max. Example: In contrast, this graph ...