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
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
48 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"
-5
votes
0answers
47 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
37 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 ...
4
votes
1answer
30 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
65 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
51 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
40 views

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

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
53 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
1answer
18 views

joint two conditions in bash script

Note: Update Jun 28 I have an iptables script .sh (bin/bash) with the rules: function run_ips(){ for ip in $(sed '/#.*/d' ips.txt); do if echo $ip | grep -q "-" >/dev/null; then iptables -A ...
0
votes
0answers
45 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
12 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
45 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
35 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
17 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
26 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....
-1
votes
0answers
21 views

How can i parse the data using multiple delimeters?

Input data is 61418406721,61407219329 username=elsupport@abc.com.au password=clas2012 text= Clas SGB QLD&WA Report - Prop Appl 0 $0.00M. Prop Approvals 0 $0.00M. BMS Appl 0 $0.00M. BMS Approvals ...
0
votes
0answers
27 views

Could you please recommend me a further reading? [closed]

I am currently reading "The Linux command line by William E.Shots". What should I read next ? I am interested in Linux OS and trying to be a super-user within a few years of reading and practicing.
1
vote
0answers
17 views

CUPS doesn't count the copies of documents

I have a Samsung ML-5515DN connected via usb to a Debian 8 pc, with CUPS installed. This pc works like a printer server and I have connected to it a Windows 7 pc. In windows I have configured the ...
0
votes
0answers
22 views

cant find sdb under /proc/partitions [closed]

[root@localhost /]# cat /proc/partitions major minor #blocks name 8 0 16777216 sda 8 1 512000 sda1 8 2 16264192 sda2 11 0 1048575 sr0 253 0 ...
1
vote
2answers
49 views

parallel processing using xargs

How to execute a bash script in parallel for each line ? Actually, I will be tailing to log file and for each line found, I want to execute script in background something like below: tailf logfile....
0
votes
1answer
21 views

Docker image creation using RPM

I used the docker file bellow to create a docker image So, my problem is, when I was building it, the below error appeared. please help me solving it.
2
votes
1answer
26 views

How to set cups to use all paper trays on a printer?

Our sales application runs on Linux. We have our printers set up in CUPS using the supplied Xerox Global Print Driver. In each printer settings it has a drop down for what paper tray to use, but you ...
2
votes
0answers
56 views

“-bash: /root/.bashrc: Permission denied” when logging in

I have this server running Centos 7. Every time I log in (remotely or locally) with every user I get an error. If I log in as root I get -bash: /root/.bashrc: Permission denied If I log in as a ...
-1
votes
0answers
40 views

Need scrpit to run progam with variable files [closed]

Need a script to automate this Move file mv /somedir/(whatever).apk /data/local/tmp/somedir Change Permissions if not change them /data/local/tmp/somedir = rwxrwxr-x /data/local/tmp/somedir/(...
1
vote
1answer
46 views

Executables in /usr/bin not showing for permissioned users [closed]

I installed xvfb-run using yum under root, and I can see the executable in /usr/bin with the permissions -rwxr-xr-x. When I login under a different usr which falls into the 'other' permissions, the ...
3
votes
1answer
28 views

Partition table consuming 32K of data?

I create a file of 100MB size, and using losetup assign it to /dev/loop0. Consequently I use fdisk to create an empty DOS partition table, and a new partition that spans the entire disk. One thing ...
0
votes
0answers
12 views

Linux XKB keyboard remapping with function keys

I need to create a keyboard layout in Linux where I can map a key to a function key. However, I didn't see where there is a symbol to do this. So basically I need something like: key {[2,at, f2, f2]}...
3
votes
2answers
60 views

Can you tell if a file has been renamed?

Many tools out there for syncing files aren't quite right for syncing you're home directory. Because of this, and to learn Ruby, I've been working on my own sync tool. An issue I've encountered, ...
0
votes
0answers
12 views

Grub2 Rescue Help

I installed Kali Linux and was able to dual boot it with Windows 8.1 on my laptop. I recently deleted a few partitions in order to get rid of Linux since I rarely used it. On reboot I saw the grub ...
1
vote
1answer
34 views

/ Owned by postfix:root after installing iRedMail

I followed this tutorial to install iRedMail on my CentOS 7 x64 System: https://www.digitalocean.com/community/tutorials/how-to-install-iredmail-on-centos-6-5-x64 Why the *"$@*3 is / now owned by ...
0
votes
3answers
20 views

How can I sort specific lines of strings from this file on my Ubuntu Server?

I have a very long file containing around 2,000 groups of information that look like this: http://pastebin.com/raw/vKxRNviT I need to organize them by dollar-balance from highest to lowest. I only ...
0
votes
0answers
15 views

server load and performance testing

Dears, there are some cluster of servers that are responsible for a telecommunication company databases. the OS's was Linux Redhat installed on bare metal till now, but all the clusters are migrating ...