Questions specifically about Linux but not specific to a particular distribution. If the question could apply to any Unix-like system, specify your Linux distribution in the body of your question but do not use the /linux tag.

learn more… | top users | synonyms

1
vote
1answer
29 views

How to get total Read and write IOPS in linux

How do i get Read and write IOPS separately in Linux? using command line or in a programmatic way. i am installed sysstat package. Please tel me how do i calculate separately using sysstat package ...
14
votes
2answers
4k views

How to get fewer ttys with Systemd?

In the old days I just modified /etc/inittab. Now, with systemd, it seems to start tty[1-6] automatically, how should I disable tty[4-6]? Looks like there's only one systemd service file, and it use ...
94
votes
19answers
80k views

How can I get my external IP address in bash?

I need to find my external IP address from a bash script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on ...
1
vote
3answers
64 views

Copy filenames, and add path prefix, in a directory, recursively

I have a working directory: /home/myusername/projectdir The working directory contains files and sub-directories. The depth of sub-directories is not known. I want to put all the *.log files into the ...
1
vote
1answer
761 views

Is it possible to prevent eth0 network traffic from accessing eth1 network?

I am not really sure how this is possible but I have a linux(ubuntu 14.04) box with 2 interfaces. eth0 is connected to our lan 192.168.0.* and eth1 is connected to a dlink wifi router on network ...
0
votes
0answers
11 views

check-config errors on Linux 3.19.0 kernel, configured under Ubuntu 15.04 x86-64

I'm new to configuring Linux kernels, and am receiving the following errors when running config-check: check-config: /tmp/tmp.tnqExc0fHn/CONFIGS/amd64-config.flavour.generic: loading config ...
0
votes
0answers
20 views

Linux distro recommendation for lenovo flex 2 [on hold]

I am looking for a linux distro for lenovo flex 2. I want to be able to install softwares easily and won't freeze or cause problems. I have tried installing ubuntu 14.04 on it but it took me forever ...
1
vote
1answer
28 views

Linux mem kernel option caps at 12GB?

When I set the mem=16G kernel option on a 14GB RAM machine, free -m reports 12GB of free memory. If I try mem=16G on a 7GB RAM machine, it doesn't change at all. Is this a bug, or is there a way ...
1
vote
0answers
11 views

Best way to approach HID_MAX_USAGES kernel errors?

This is an issue I have for the second time now: basically, an USB based device reports some wrong numbers for "HID_MAX_USAGES", resulting in the kernel giving an error message and the device not ...
22
votes
5answers
5k views

Where does uname get its information from?

Where does uname really get its information from? I figure this is something that should be straightforward. Unfortunately, I can't find any header containing just that information. Say someone ...
2
votes
0answers
7 views

What is “state-object” in cgroups

I am gathering some idea about lxc, kernel name spaces and cgroups. While reading man lxc-cgroup, i find : lxc-cgroup gets or sets the value of a state-object (e.g., 'cpuset.cpus') in the ...
5
votes
3answers
4k views

ulimit & rlimit in Linux, are they the same thing?

I see people use the terms ulimit & rlimit interchangeably, can I say they are referring to the same thing?
0
votes
0answers
15 views

What is Linux Performance Tuning? [on hold]

I have just seen something about Linux Performance Tuning (Sysadmin) what is this exactly, just configuring Linux so they can increase performance of the server on all sides? or does it also include ...
2
votes
1answer
769 views

redirect web server with no-ip and port forwarding in livebox

I want my Apache web server running on a Livebox (home router appliance running Linux) to be accessible from the Internet (WAN). I installed and configured the application noip2 on my Ubuntu PC. ...
0
votes
1answer
9 views

Upgrading natty version of ubuntu

I am trying to upgrade my version, which is natty(11.04). Since no more support is available I changed the sources.list as follows. # EOL upgrade sources.list # Required deb ...
1
vote
3answers
14k views

Install NVIDIA GTX graphics driver on Linux Mint 17.1

I can't get my NVIDIA graphics card to run on Linux Mint 17.1. All I get is a black screen. I tried installing the driver with $ sudo add-apt-repository ppa:xorg-edgers/ppa $ sudo apt-get update $ ...
1
vote
3answers
1k views

How to set Ruby GEM_HOME and GEM_PATH

I'm a NOVICE user of Linux and using Linux mint 17.1 I've reinstalled Linux mint 20 time in last 3 days for that issue but could not fix it I'm trying to install ruby on rails using rvm what ...
0
votes
0answers
21 views

Login/logout loop on Ubuntu 14.04

I am running Ubuntu 14.04 inside VMware workstation 11.1. I testing changing the color depth and now I am hitting a login/logout loop. When the login screen comes up I select my account, type in the ...
0
votes
2answers
31 views

How to use if with grep -x

This is my code: if grep -x $idle | grep -x $dead | grep -x $busy ./Event.log then echo " Events are running Successfully" >> ./Event.log else echo "One or more Events are down. Check ...
0
votes
0answers
11 views

Linux Mint: two password forms after suspend mode

I have an odd issue that's not really a performance problem but a mild cosmetic one. When my laptop wakes up from sleep mode and prompts me for my login password I usually get two forms requesting my ...
-1
votes
0answers
6 views

keyctl can't process nulls [on hold]

I have a system on my Ubuntu VM where I can create temporary keys from a master key by hashing it with an identifier. Problem is, some of the keys, which are always 32 bytes in length, only have a few ...
0
votes
2answers
37 views

Compiling Kernel : Unable to locate ncurses

I am trying to compile the kernel. I downloaded the source . When I tried 'make menucionfig'. I got following result : * Unable to find the ncurses libraries or the * required header files. * 'make ...
0
votes
1answer
14 views

Need Info on linux command ssh-keygen -t rsa -b 4096 -C “your_email@example.com”

I have to access personal git repository at the university . I have been asked to Generate SSH key. I am using this command to generate an SSH key: ssh-keygen -t rsa -b 4096 -C ...
2
votes
1answer
20 views

tcpdump waits a second before displaying packets

On Linux Mint (either 17 or 17.1) I'm using tcpdump to capture some packets with this command: tcpdump -UnvXSs 4096 -B 1024 -i eth0 Despite the -U option, it doesn't actually output packets ...
1
vote
1answer
24 views

D3100 Dell docking station

So I got my Fedora 22 as I finally decided to switch from Fedora 20 ( been using it forever, found it kinda hard to detach ) The problem is that I bought my new docking station for multiple monitors ...
0
votes
0answers
71 views

Bluetooth on at startup in openSUSE

I just installed openSUSE (dual boot with Windows) on my thinkpad T420 and after the install for some strange reason my Bluetooth is on when I turn on my computer. Both in Windows and openSUSE my ...
0
votes
1answer
637 views

Running program on startup (Fedora 22/ 2015)

I tried really hard to avoid posting a new question for something so basic and already answered in a hundred places, but after spending two hours on this and trying every solution out there I'm ...
0
votes
2answers
30 views

Breaking up a file into two parts based on a particular line [duplicate]

I need to breakup a file into two separate files based on a particular line for example: . . sc_outfifo 0.000E+00 0.000E+00 0.000E+00 0.000E+00 1.586E-02 1.586E-02 1.586E-02 Fub_Level_DACGE(%) ...
-2
votes
1answer
37 views

Writing data with column names in CSV file [closed]

My requirement is to compare two files and that output we need to write to a CSV file and I was able to do that. However, before inserting data into the file I need to name the columns like ...
2
votes
2answers
29 views

How do I turn a local yum repository into a local satellite for many other repositories

I am not sure I am asking this question in the best way. I am doing my best to ask it in the clearest way possible. I would like to build a local (to my cluster) yum repository server such that I ...
2
votes
0answers
149 views

Synaptics touchpad LED support

How to enable support the LED in Synaptics touchpads? I'm using Debian Jessie and xserver-xorg-input-synaptics ver. 1.8.1-1. I found patches by Takashi Iwai from SUSE for LED support in Synaptics ...
1
vote
1answer
6 views

Only move folders not existing in target directory

I am looking for a way to move folders that are not already present in the target directory on my linux server. Example: Target directory folder1 folder2 folder3 folder4 Source directory folder1 ...
2
votes
1answer
2k views

Ubuntu: wire network is not stable and must restart network-manager periodcally

I don't know why my wire network now is not stable. After a short time of using, maybe 30 minutes, 15 minutes or maybe just 2 minutes, my network is down. When my network is down, I must run this ...
0
votes
0answers
33 views

dpkg: error: 2 expected programs not found in PATH or not executable can't install anything

When I try to install anything on a linux server I always get the following error: Last login: Sat Aug 22 10:25:09 2015 from 27.34.97.20 root@s3:~# sudo -i root@s3:~# su root@s3:~# apt-get install ...
0
votes
1answer
16 views

How do I check whether audio file samples are clipped without playing the file?

I have a big MP3 audio file, about 170 MB, which I'd like to check for clipping. In details I need to increase the audio volume but I don't want to push the volume too high and clip audio samples. I ...
0
votes
0answers
15 views

Stack pointer of the interrupt stack

Linux kernel has separate stacks for user mode and kernel mode process and also some special stacks. One of this special stacks is interrupt stack with the size 16 kilobytes placed in the ...
1
vote
1answer
47 views

Accidentally deleted my wifi device wlan0

I was trying to fix my wifi on kali linux the other day and was following some tutorial. That didn't work so I read somewhere that if I run this command iw dev wlan0 del After that command i cant ...
23
votes
4answers
13k views

Resume transfer of a single file by rsync

In Ubuntu, I want to copy a big file from my hard drive to a removable drive by rsync. For some other reason, the operation cannot complete in a single run. So I am trying to figure out how to use ...
1
vote
0answers
14 views

running cron on a chroot

For my web development I use a debootstrap'ped Debian with sysvinit, I start apache2/mysql manually only when I need to work. Now for a new project I require to run some scheduled task for which I ...
0
votes
0answers
29 views

What are the advantage of using tcsh? [duplicate]

I'm a newbie to Linux. I have found tcsh has some advantages over bash. What are the significant advantages using tcsh over bash? For C Programmers is there any specific advantages that bash cannot ...
0
votes
0answers
19 views

How to fix multiple display settings support for Linux Mint Cinnamon with a AMD R7 graphic card?

I have a AMD Radeon R7 M265 Series graphic card at my laptop, I installed drivers manually from AMD site, I can get clinfo and fgl_glxgears output after install, the problem I'm facing is that now I ...
-1
votes
0answers
9 views

How to determining which file connecting to special ip?

I have a AWS server in the past day i received an email from AWS support that shows i have very outgoing trafic in my server and it seems there is a script in my server that using to bruteforce ...
18
votes
6answers
3k views

How to safely turn off swap permanently? (on Debian Jessie)

I fresh installed Debian Jessie with default partitioning on an SSD drive. My current disk partitions look like this: As I have 16GB RAM, I think I don't need swap. On Windows, I had it turned off ...
0
votes
1answer
649 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 ...
3
votes
1answer
680 views

Can't find vgaswitcheroo directory in CentOS6

I've installed CentOS6 on my laptop, which has a built in VGA and a discrete (AMD) VGA. I used to switch AMD video off in other distro's (e.g. Fedora, Arch) using: $ echo OFF > ...
74
votes
13answers
11k views

What is the benefit of compiling your own linux kernel?

What benefit could I see by compiling a Linux kernel myself? Is there some efficiency you could create by customizing it to your hardware?
6
votes
3answers
25k views

Format of /etc/hosts on Linux (different from Windows?)

Pasted below this question is a sample of a /etc/hosts file from a Linux (CentOS) and a Windows machine. The Linux file has two tabbed entries after the IP address (that is localhost.localdomain ...
1
vote
2answers
636 views

Does sync command remove the dirty cache in the memory?

I am aware that sync command flushes the dirty cache into disk. I have run free command first, then sync, and then free again. The result of latter free command shows more free memory available than ...
3
votes
3answers
812 views

Set default kernel in GRUB

How can I pick which kernel GRUB2 should load by default? I recently installed a the linux realtime kernel and now it loads by default. I'd like to load the regular one by default. So far I only ...
0
votes
2answers
205 views

Linux tattoo: sudo -rm -rf / [closed]

sorry if this might be off-topic, it's the most in-topic forum I found in stackexchange, please let me know if there is a more adequate forum and I'll erase/repost there.. Anyways, I'm getting a ...