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

4
votes
1answer
53 views

Why can the space between OPTIONS and Parameters be omitted?

This is probably a duplicate question but I can not find the answer. For example: xargs -n 1 is the same as xatrgs -n1 But if you look at the man page, the option is listed as -n max-args ...
0
votes
0answers
16 views

Badblocks, test read/write non-destructively on a mounted disk [on hold]

I started a test read/write non-destructively with badblocks, everything was going well until, by accident, a person mounted the file system and began to access Some video files in it for a few ...
0
votes
1answer
11 views

How to create extended partition in Ubuntu

All, I am tring to create partition in the installation of Ubuntu. As I knew. MBR partitioning scheme allows you to have up to 4 partitions on a drive, one of those partitions can be an "...
1
vote
0answers
20 views

Mount point for specific USB port

I have a USB hub connected to my laptop, always through the same port - my question is how can I make my linux installation always mount whatever is plugged into one of the specific ports on this hub ...
0
votes
0answers
4 views

Can I VNC directly into my “Linux Deploy” from OS X?

I use Linux Deploy to run desktop Linux distributions on my Android devices. The way it works is the I start the system in the LD app, and then I go to VNC Viewer on the same device to get a GUI. ...
0
votes
3answers
36 views

What does it mean “Everything in the Linux is file” [duplicate]

Forgive me I am a novice of Linux. I just read the post here. It just said. This statement is true because there are special files that are more than just files (named pipes and sockets, for ...
-1
votes
0answers
14 views

How to run a function for a specific received packet? [duplicate]

I am doing an experiment for my master thesis. I want to run a function (e.g. multiply two numbers) when a specific packet is received (e.g. a packet with destination TCP port 6666). For example, I ...
-1
votes
0answers
17 views

sources.list Debian 8 doesn't work!

Recently I've installed Debian 8 Jessie, so I wanted to install some packages but I got the message that I need to insert the System Installation CD in order to proceed with package installation. I'...
0
votes
0answers
20 views

Exchange apache2 for nginx problem

I installed apache2 and now I wont use nginx now. I could reached my html page on local network on 192.168.1.11. The html file is saved in var/www/html/index.html. Now I installed nginx. I try to ...
0
votes
1answer
18 views

Installing Lubuntu on Old Computer

I am trying to revive an old computer of mine. It is a Dell Inspiron 9300 running Windows XP. I am using unetbootin with Grub to install Lubuntu, however when I try to install after restarting the ...
0
votes
2answers
23 views

SCP command keeps asking password

I've been struggling for days with this now and can't find what I'm doing wrong. I've got a website on a VPS server. Every night I make a backup of the database. It gets stored on my VPS server. I ...
-4
votes
1answer
29 views

Squaring all numbers in a file

Please, can someone share with me, or show me the script for Linux command to read from a file until EOF and compute the square of all numbers read. The result of this computation must be stored in an ...
1
vote
0answers
13 views

Dbus: Terminate not working on other user

I'm new with dbus(Using Ubuntu 14.04, Unity). So I'm logged with user A, create process as user B and that process creates session for user B, now I want to use dbus messages to shut down session from ...
2
votes
3answers
122 views

logfiles and daylight savings time

How do Linux logfiles handle daylight savings time? When you fall back not only would you get out of order values but also possibly duplicate values. I'm thinking that I should set the system time ...
1
vote
3answers
53 views

Substitute a column i text file with incrementing numbers

I need to do something very similar to this Replace string with sequential index, but I don't need to add a number to a column, but substitute a whole column with incrementing numbers. Like this: 0 ...
2
votes
2answers
31 views

recognize which interface I using

On my laptop I've two interfaces (wlan0 and eth0), after conneted the wired, ifconfig show me "RUNNING" also in eth0. (both interfaces are in same network). /sbin/ifconfig wlan0 wlan0: flags=4163<...
1
vote
2answers
34 views

How to fix shell prompt ( ps1 ) after remote login

I am observing the below strange prompt after login to my remote machine from ubuntu 14.04. This only happens while I'm using the ubuntu gui terminal and not via putty. Any suggestion to fix it?
0
votes
1answer
10 views

how to add a loop device on fedora 23 with losetup?

in an attempt to access a truecrypt container, I stumbled about the prerequisite of setting up a loop device... ncoghlan suggested in an earlier answer When you run it as root, losetup -f will ...
0
votes
0answers
16 views

/dev/sda3: unexpected inconsistency; run fsck manually [on hold]

My laptop is a goverment laptop. While I switch on laptop to go to Linux an error occurs: /dev/sda3: UNEXPECTED INCONSISTENCY :RUN fsck MANUALLY .(i.e. without -a or -p options) fsck died ...
0
votes
1answer
18 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
-2
votes
2answers
39 views

How to compare “abc” with abc in bash?

I did not find the answer other location, so seek help here. My code need compare "stop" with stop this is stand bash string. pi@raspberrypi:~/Voice $ ./test.sh | more "stop" stop My code: #!/bin/...
-1
votes
0answers
22 views

kali rolling 2016 theme errors after installing new upgrade and dist-upgrade

The new updates and upgrades have bugged all my themes from working any ideas and advice is appreciated, Kali x theme works just about the title text is grey, so hard to see but when applying themes ...
0
votes
0answers
21 views

need creat, open, read write tutorial on the web [on hold]

creat, open, read, read, and lseek are functions used to process binary files in Unix C (cc or gcc), but I'm having trouble finding a tutorial on them on the web. Does anyone know of such a tutorial?
0
votes
1answer
13 views

Want to know space consuming by logs

I want to configure my application logs to splunk interface for easy referring. Here i need to provide with how much of amount does my log files are consuming to splunk admins. As i can see my log ...
2
votes
1answer
65 views

Universal way to logout from terminal via dbus

I'm new with dbus, and saw different ways to log out from terminal depending on desktop env. But I'm curious is there any way to log out from any desktop env using dbus messages? On GNOME: dbus-send ...
0
votes
1answer
43 views

how to write own shell that works with ssh [on hold]

I tried several tutorials I modified usermod -s shell path_to_binary username it does not work thru winscp, but works if use from Ubuntu terminal I want to own shell, where I can control over ...
1
vote
0answers
12 views

Wacom Linux xsetwacom Attach Shell Script to Buttons

Using Inutos Pro with Manjaro. Would like to attach a shell/bash script to one of eight buttons. Script would be something along the lines of 'dolphin Documents'. Can xsetwacom do this?
-1
votes
2answers
26 views

Linux passwd User permission change

When I look at usr/bin/ directory, I saw the command line with passwd -rwsr-xr-x. 1 root root 30768 2012-02-22 20:48 /usr/bin/passwd and It allows to change to get root's authority. with s. I ...
-4
votes
0answers
38 views

Can I decentely code C# on Linux? [on hold]

I'm about to learn C# for my studies, and I was wondering if it was viable to code on Linux ? Today, I can't bear Windows anymore, and I would rather code on Linux. So, is it practical, is the ...
0
votes
1answer
11 views

Puppy precise - sudo command not found on bootable CD

I downloaded the .iso file and burned it to a rewritable CD. But when trying to install a PHP server (xampp) from the command line, as instructed in http://wikihow.com/Install-XAMPP-on-Linux my puppy ...
0
votes
3answers
38 views

How to pick oldest file in a folder from directory [duplicate]

I had n number of files are there in my ../in/ directory. From those files I want the oldest file to process and send it to the ../complete/ directory. The remaining files are sent to the ../error/ ...
3
votes
0answers
19 views

Tomcat, sql, kerberos, oh my!

I am working on setting up tomcat 8.0.35 on ubuntu 16.04 with Oracle Java (not openjdk) 1.8.0_91-b14 to use kerberos authentication when authenticating to our Microsoft SQL database. The issue I am ...
-2
votes
1answer
39 views

Gather data from 100 AWS servers [on hold]

I have 100 servers running on AWS. I need to easily get how much data each user on the remote systems are using and output it to a text file. How could I best accomplish this?
-1
votes
1answer
57 views

Problem Counting the lines of a text file

I want to be able to get the number of non-empty lines in a text file. Suppose I have num.txt with the contents: 10 10 12 15 24 31 32 Here there are 8 lines, with only 7 that are not empty. How ...
0
votes
1answer
27 views

Custom Linux log in prompt and system health check

I am looking for an existing tool or direction on creating a custom login terminal and system health-check scripts when booting/logging into my linux machine. Upon opening or closing the laptop much ...
1
vote
0answers
9 views

iptables routing input and forward paths

I would like to know the flow of a packet given the configuration below. Suppose that I setup an adhoc network between my android phone and a NIC on my linux box. I then setup the android phone to ...
-4
votes
1answer
37 views

How to fix whois Command Error

i have Kali Linux version 2016.1 installed on my system. i am trying to run command "whois " but there is an error "bash: whois: command not found"
-3
votes
0answers
25 views

Usefulness of top command and how a technician may use it with the ps and kill commands in order to 'investigate a misbehaving system' [on hold]

For my computing CA, I have been asked to do primary research in order to answer the question in the title. Whilst I know this is not the best site, it is the only place I can think of with people who ...
0
votes
1answer
34 views

CentOS, how to watch YouTube videos with Mozilla Firefox?

I'm currently using a CentOS Linux release 7.2.1511 (Core) operating system on a Dell machine. I've been trying to watch YouTube videos with Mozilla Firefox ESR 45.1.1, but it never worked. ("It's ...
3
votes
1answer
28 views

Why does reading /proc/net/tcp take a long time ss is quick to return the same sort of data about the connections table?

On Linux 2.6.32, if you read (for example, cat) /proc/net/tcp, on a very loaded system (for example, a web server), you will find that reading 100K entries takes over 30 seconds. That's a long time. ...
-3
votes
2answers
62 views

How can grep for files that end in %0x9

I need to find files ending with the character %0x9. How can I do that?
0
votes
0answers
13 views

Trouble mounting a centos NFS export on Windows 2012 R2

Hoping somebody can help me out here. Have been struggling with this for a while now. I have a Centos 6.7 box which has NFS installed. I have an export/share configured; my exports file is like so.....
0
votes
3answers
34 views

How to stop receiving spam email from server

I have CentOS and the hosting provider provided me Plesk Control Panel. We used to have a problem that website was sending loads of spam emails. It was new joomla installed and it has ...
0
votes
0answers
46 views

yum install error nothing to do (MYSQL, CentOS 7)

I'm trying to install MYSQL instead of MariaDB on my VPS CentOS 7. I used this command: wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm yum install http://dev.mysql.com/get/mysql-...
0
votes
0answers
34 views

How to use a variable having space in its name and use in grep command [on hold]

I have a Variable as :- MY_STRING_VAR="VAR WITH SPACE". I want to find the files which have the string in it. find . -type f -exec grep -Hil "${MY_STRING_VAR}" {} + >> LIST.txt But due to ...
1
vote
1answer
50 views

How to kill all sessions for a Linux user except first one, and limit users to one login session

I need to know how to kill all processes for a logged in user except the first one in linux redhat 6. for example, AZain user is logged in multiple times from different machines so I need to allow ...