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

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
33 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
14 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
18 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
21 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-...
-3
votes
0answers
30 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
81 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 ...
-1
votes
1answer
45 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
13 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
39 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
12 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
46 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
22 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
46 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
58 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
28 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
13 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
41 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"
-4
votes
0answers
37 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' [closed]

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
35 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
64 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
49 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
38 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
51 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 ...
-6
votes
0answers
33 views

Write a Shell Script to generate a report named “Report_DDMMYYYY_HHMMSS.log” [closed]

Write a Shell Script to generate a report named "DD_MM_YYYY_HH_MM_SS.log"which performs the following operations: 1) ** Display the number of files present in the given directory (Directory name ...
0
votes
0answers
9 views

Bushound alternative for Linux for SCSI logging

I was wondering if anyone knew of a good solution to logging specific SCSI device traffic on Linux? Does anyone knew of a comprable Linux alternative to Window's Bushound? I have looked at already ...
1
vote
1answer
21 views

pkill not killing processes past immediate descendants of a process

I want to kill a chain of process e.g. PID PPID 100 XXX 101 100 102 101 When I use pkill -P 100 PID 100 and 101 die as expected, but 102 is given init as it's PPID. How can I force pkill to ...
0
votes
0answers
51 views

Ubuntu not allowing traffic to ports 1 - 1024

I seem to have encountered a weird issue whereby my ubuntu box is not allowing incoming traffic to the first 1024 ports or so, for both TCP and UDP. My iptables policy is set to ACCEPT for all 3 ...
0
votes
0answers
43 views

how to setup LAMP stack on linux server [closed]

I've never ever worked with VPS but now I got one. i connected to the server and run command for finding the os version but i got this Screenshot of putty console: so I want to install LAMP stack ...
0
votes
0answers
7 views

Horizontal Workspaces in KDE SC 4.14

My College updated from RHEL 6 to RHEL 7, and with it came KDE. I want to have 2 rows and 2 columns for the workspaces, but I can't seem to find the setting. The only option in the tweak tool is to ...
0
votes
1answer
11 views

Bash PS1 Doesn't Evaluate Variables

I'm trying to set my PS1 prompt to /usr/local/src mario So I've used the following code inside of .bash_profile: export PS1=" \w \u\[$(tput sgr0)\]" And I end up with: \w \u\[$(tput sgr0)\] ...
3
votes
0answers
24 views

SoftIRQs and Fast Packet Processing on Linux network

I have been reading about performance tuning of Linux to get the fastest packet processing times when receiving financial market data. I see that when the NIC receives a packet, it puts it in memory ...
-1
votes
1answer
30 views

source command doesn/t work when used inside shell script

I am using an installer which is adding an environment variable in the ~/.bash_profile file. When I'm starting the jetty server, it is unable to find that entry... When I run $ source ~/....
2
votes
1answer
25 views

nmap socket trouble

I've been trying to use nmap but it fails with the following output: Starting Nmap 6.47 ( http://nmap.org ) at 2016-06-21 22:24 PDT NSOCK ERROR [0.3460s] nsock_make_socket(): Socket trouble: Address ...
0
votes
0answers
36 views

Typing colon on the root terminal [closed]

how do i type the : on the root terminal The more I pressed shift : it doesn't show on my terminal and there is no : on the numerical pad.
1
vote
1answer
44 views

Debian - No wired connection after restart

Last night I was working on my computer, for reference I'm using i3, and decided to uninstall XFCE4, as I felt I didn't need it. The next morning I turned on my computer and have no wired connection. ...
0
votes
1answer
34 views

Rsync with destination owner and permission possible?

Source server have one owner is root. ----/home/sub1/test1 ----/home/sub2/test1 My local machine is destination. ----/home/sub1/test1 owner by user1 ----/home/sub2/test1 owner by user2 How I ...
1
vote
1answer
15 views

Ranger file manager - Open gnome-terminal instead of xterm

I recently started using Ranger as my default file manager, and I'm really enjoying it. Right now, I've managed to change rifle.conf so that when I play audio or video from Ranger, mpv opens in a new ...
0
votes
1answer
25 views

What's the fastest way to install Postgresql on Wind River 7.0?

I'm new to bare-bones Linux systems and need to install postgres on a wind river Linux distribution. My plan was to install yum and then use yum to install the postgres rpm. I've tried to install ...
0
votes
0answers
12 views

i whant to clean the shared and the buff/cache memory [duplicate]

I want to clean the shared and the buff/cache memory, I'm not expert in linux but I want to learn. I have 2 gb of ram when i go through firefox the memory used is 900-1000 mb is this normal?? ...
-3
votes
1answer
23 views

Is there a process that is always running that uniquely identifiers a user in linux. [closed]

Is there any such essential process launched in the user space... ALso should take care of headless servers
0
votes
0answers
12 views

Grub Rescue 2 Problem

I recently deleted partitions containing Kali Linux and now my computer boots into grub rescue mode. When I tried to boot to Kali Live from my flash drive, there was an error with a failure to read ...
-1
votes
0answers
9 views

Linux failed reboot from suspend

The Linux box installed DDR3 8GB Ram failed to reboot from suspend. But the box with DDR2 4GB reboot fine from suspend. Everything is the same. The motherboard is Gigabyte G41M-Combo. The kernel is 3....