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

112
votes
4answers
63k views

What do the flags in /proc/cpuinfo mean?

How can I tell whether my processor has a particular feature? (64-bit instruction set, hardware-assisted virtualization, cryptographic accelerators, etc.) I know that the file /proc/cpuinfo contains ...
-5
votes
1answer
39 views

The Linux shutdown process [closed]

Describe the typical Linux shutdown process for me. I don't know if there is a difference between a shutdown issued using shutdown and one issued by switching run levels, so explain both if there is a ...
0
votes
0answers
17 views

regulate system volume with midi controller

Make midi controller regulate system volume. With the following code a midi controller can be used for controlling the audio volume of a linux system: aseqdump -p 20 | sed -nur 's/^.*controller 14, ...
1
vote
0answers
16 views

control volumes of multiple independent sound sources

In linux, how would one have multiple sound sources, which volumes can be controlled independently. For instance you'd have two youtube videos running, and each one would be controlled by something ...
2
votes
1answer
31 views

Find kernel name for a partition when only the label is known

Condition: find reliably device name where disk label (MasiWeek) and disk size (2 TB) are known Characteristics of the system Disk label is the name of the disc given by the user. It is listed in /...
0
votes
2answers
858 views

two NICs in the same subnet— need to set up routing

I have a tricky case: +---+ +----+ |D1 +->eth0---------<-eth0-+D2 | | | | | | +->eth1---------<-eth1-+ | +---+ +--...
5
votes
3answers
48k views

How to find which Process is causing High CPU usage

Is there any way to find out from terminal which process is causing high CPU Usage ? It would also be useful to order processes in descending order of cpu Usage
-1
votes
0answers
29 views

Why does my connection time out? [closed]

I'm trying to write "boot" in putty, I get the following message: connection timed out I have reinstalled putty but the problem persist. What is the problem?
5
votes
4answers
495 views

Is it possible to simulate “no external access” from a Linux machine when developing?

Sometimes I upload an application to a server that doesn't have external internet access. I would like to create the same environment in my machine for testing some features in the application and ...
2
votes
1answer
495 views
0
votes
0answers
25 views

Blocking incoming connections from external ports

How can I block incoming connections from some port which exists on some internet server, not on my PC? I tried to do it by rule <port> DENY IN Anywhere in gufw firewall, but it looks like it ...
0
votes
0answers
30 views

why my cursor do this mess?

My cursor has a square around it. This square is very noisy. It interferes with defentive selection and also it merges many windows together to make them rendered in the box. It also leave a tail when ...
0
votes
1answer
21 views

parsing oswiostat

I am looking for a way to parse an iostat file and grab the time and iowait. My files look like this: Linux OSWbb v7.3.3 zzz ***Wed Jul 20 19:00:08 EDT 2016 avg-cpu: %user %nice %system %iowait %...
0
votes
3answers
30 views

how can I supply negative value to nice() and run without error even if I am not the superuser

how can I supply negative value to nice() and run without error even if I am not the superuser can I do system("su"); nice(-1); it is asking for password which I do not want?
0
votes
1answer
25 views

What is Alternative of initlog (present in RHEL5) but deprecated in RHEL6?

I am using initlog tool in a cron file to write the output of ntpq -p command in syslog.. But initlog command has been deprecated in RHEL6. Now, I want know the alternative of initlog command in ...
1
vote
2answers
248 views

Understanding free -m Memory Usage

I dont understand this. When free -m show this: total used free shared buffers cached Mem: 15334 14025 1308 0 258 10918 -/+ ...
2
votes
0answers
44 views

Less RAM Aailable than installed on Centos 7

I can't seem to figure out why do I have less RAM usable than installed. I am running 64bit Centos 7 with 1 RAM module of 4096MB on a Lenovo x230. Some information from the machine in question: $ ...
3
votes
0answers
36 views

Unable to change default bitrate of wireless network interface

I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows: wlan0 IEEE 802....
0
votes
0answers
18 views

OpenSSH ForceCommand

I want to disable this kind of command executing: ssh user@host command on my server. Then, I want to run some tests and later invoke the interactive shell What I did I've found in the web that ...
1
vote
1answer
38 views

How to set a path variable without root acess? [duplicate]

My college currently uses a very old (like 3 years old) openJDK 1.7 distribution. And being a student, obviously I don't have root privileges. I wanted to use a much later version downloaded a much ...
0
votes
0answers
21 views

Automated Shell Scipt for Health Check to be displayed in mail

I need to arrange the below Mail Output in Order: FILE SYSTEM MEMORY: Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-tmp 2.0G 81M 1.8G 5% /tmp MEMORY USAGE: ...
18
votes
3answers
4k views

Fork vs Clone on 2.6 Kernel Linux

I have some confusion regarding fork and clone. I have seen that: fork is for processes and clone is for threads fork just calls clone, clone is used for all processes and threads Are either of ...
0
votes
0answers
8 views

How to use the man command to view documentation [duplicate]

I don't find man command to be much useful because I can't figure out what the flags are for and how all of them come together.
0
votes
1answer
3k views

How can I simulate usb storage device connection with qemu?

I'm writting a program for controlling usb storage device connections (this is a classic subject). All it's ok with my program, but now, I want to write some tests. So in order to do that, I realized ...
0
votes
0answers
12 views

Detect / log network changes in rasbian/ linux

I just stated using raspberrypi, Trying to learn some networking and linux stuffs. I want to log or detect network changes like If my machine joined a network. If any device joined the network of ...
0
votes
1answer
21 views

Is it possible that the kernel doesn't let a already ready thread run even when there is a idle processor?

Suppose each thread's affinity is all the processors. Whenever a thread becomes ready, will the kernel attempt to find an idle processor to run it?
0
votes
0answers
6 views

Virtual to Cloud Migration [closed]

I have been assigned a task for the migration of Virtual Servers (Linux) to Cloud environment . Wanted to ask is V2C different from V2V migration. I am talking about RHEL 6 Servers hosted over an ESX ....
1
vote
1answer
22 views

How can I mount /usr on another partition but use a folder called /usr on that partition instead of using / as /usr?

Somewhat along the lines of this question, How to mount multiple directories on the same partition? but my situation is different. I have a 2 small partitions that I'm using for two variants of ...
1
vote
3answers
1k views

Link Local IPv6 address keeps being automatically assigned

I'm looking to prevent the IPv6 link local address from being randomly assigned. I'm not looking to disable v6 but rather statically assign my own link local. I've done ifconfig vboxnet0 inet6 add ...
19
votes
2answers
7k views

Why doesn't mount respect the read only option for bind mounts?

On my Arch Linux system (Linux Kernel 3.14.2) bind mounts do not respect the read only option # mkdir test # mount --bind -o ro test/ /mnt # touch /mnt/foo creates the file /mnt/foo. The relevant ...
0
votes
2answers
33 views

When is the page table of a process loaded in memory?

I'd like to know when is the page table of a particular process loaded in main memory by the OS? Is it when the process gets scheduled? Is the OS capable of directly loading the process page table ...
-1
votes
1answer
32 views

Share WIFI creating hotspot on Linux Mint

I'm not able to create a hotspot in order to share my wifi connection. I use Linux Mint and I want connect my phone to WIFI through my laptop hotspot.
-1
votes
2answers
43 views

Accessing a Linux box for forget username and password [duplicate]

I have a physical linux box running some services. I have no any login information for that linux box. How do I get access to the box and check all the services running on that box? It is not just ...
-1
votes
2answers
31 views

what is the function of “ip link” command?

I've installed putty, and I'm trying to write ip link For what is it used??
21
votes
8answers
62k views

Checking if HyperThreading is enabled or not?

How can I check if hyperthreading is enabled on a Linux machine, using a perl script to check for it? I'm trying the following way: dmidecode -t processor | grep HTT Let me know if I'm on right ...
0
votes
0answers
19 views

How to make a USB visible in LXD Container

I am fairly new to LXD Conatiners. I have a Host ubuntu 16.04 machine running which has a single container : root@ubuntu-blade1:/etc/udev/rules.d# lxc list +-------------+---------+-------------------...
-3
votes
1answer
15 views

how to configure kickstart server in RHEL7? [closed]

please let me know the full configuration of kickstart server in RHEL7 server.
4
votes
1answer
650 views

Init-systems and service management on different distributions

Is there some overview which Linux distribution comes with which (default) init system and uses which tool for starting/stopping services? Is there some distribution independent way to start/stop/...
8
votes
1answer
152 views

Where in GRUB2 source code is the handover/jump to kernel code?

I'm looking for the line of code where GRUB2 finally jumps to kernel code and thus hands over execution on x86 systems? I guess it's in an assembler file since this is very low architecture stuff. I ...
7
votes
2answers
1k views

Benefiting of sched_autogroup_enabled on the desktop

I am running a 2.6.37 kernel with sched_autogroup_enabled set to 1. I am not certain that I am seeing the benefits of this patch since: I am launching my applications from the desktop; applications ...
3
votes
1answer
35 views

Bitlocker like capability for Linux?

As you know large company IT departments generally enable Bitlocker on any Windows laptop. Generally, one does not notice an issue with this and it is relatively effective in protecting the raw disk ...
3
votes
1answer
2k views

How to access u boot environment from linux?

How can I access and change the u-Boot env variables in linux. Using the u-boot/tools/env directory in u boot directory: u-boot$ make env Which created the executable file fw_printenv. I copied ...
0
votes
1answer
29 views

Check if it's an external flash drive or usb flash stick?

When a usb flash stick or usb external drive get connected, is there any way to check whether it's a usb stick or external flash drive by means of Linux? Is there any utility or something like that?
0
votes
1answer
28 views

how to make my dns server public?

i'm trying to make a public DNS server , my DNS server works only on my internal network but when i try to 'nslookup example.com myDNSserverIP(public ip)' it fails i'm running it on ubuntu 15.10-...
21
votes
3answers
14k views

Limit outgoing bandwidth on an specific interface

I would like to know the easiest way to limit outgoing bandwidth for an interface. I want to cap the outgoing port speed so that file transfers between my servers don't fail during busy hours. What's ...
0
votes
1answer
3k views

Change screen resolution into Kali on Mac BookPro

I installed Kali in dual boot on my Mac Book Retina, all work, but I have a screen resolution too high. So I need to change the screen resolution, but if I change it, the screen become black, and ...
0
votes
0answers
19 views

cURL hanging on connection

I am using cURL from bash script. I have this code in a loop to download multiple files from remote server curl --fail --silent ${url} -o ${local_filename} Most of the time, this works as supposed. ...
26
votes
2answers
32k views

What is meant by mounting a device in Linux?

I've heard the term "mounting" when referring to devices in Linux. What is its actual meaning? How it handling now unlike older versions? I haven't done that manually via the command-line. Can you ...
0
votes
0answers
66 views

Still able to do connections despite settings [closed]

Can you explain me why I can still make connections for example on port 3333 by nc -l 3333 and connect to the listening process while I have set in firewall blocking incoming and outgoing connections ...
0
votes
0answers
61 views

Problem installing nvidia driver 920M on ubuntu 14.04

I am a Linux beginner. I installed ubuntu 14.04 alongside win10, on my new asus laptop. My system is powered by a geforce 920M. The problem is that after I install the nvidia driver (The system ...