Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linux]

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.

0
votes
3answers
110 views

How to get data shown out of workspace or directly from application?

Because of some reason I had to use another web browser than my main which I use daily and I chose a small browser which I installed long time ago. This brower is called Dooble, version 0.07 (dooble-0....
0
votes
2answers
167 views

Maximally shrink LVM PV and LUKS container / partition [closed]

I want to remove my swap LVM LV out of its current LUKS container, and have it unencrypted instead. I want to avoid something like gparted to have control of every step in the process. After doing ...
0
votes
0answers
2k views

Kali 1.3 - Installing Parallel Tools

I am running Kali 1.1 on Parallels 9 for Mac and am having some issues. Firstly, the WiFi doesn't work (normal for use within a virtual machine, but also isn't working with my external wireless card ...
0
votes
1answer
49 views

I can't see the iptables rules where firewalld enables helpers. Why? Have the helpers been disabled somehow?

Here is an example of the ftp helper added by enabling the ftp service in the public zone: # iptables -t raw -S | grep CT -A PRE_public_allow -p tcp -m tcp --dport 21 -j CT --helper ftp https://...
0
votes
2answers
1k views

Nested virtualization: run RHEVH inside KVM

I have laptop with 16GB RAM, trying to install Red Hat Enterprise Virtualization Hypervisor 3.3 on Virtual Machine Manager (KVM) based guest, but it gives error "Virtualization Hardware not found". ...
0
votes
1answer
754 views

Does udev (/udev) consume storage?

Let's say I install a single partition (root) of linux that's 20GB. When I run 'df' it shows me the root drive that's 20GB, udev, and several tmpfs info. I believe tmpfs is just temporary and from ...
0
votes
2answers
1k views

Port forwarding using VPN client

I've already looked here and believe this is on the right track, though I still can't get it to work: Port forward to VPN Client? I have a vps, and on that vps I'm using openVPN. I have a connection ...
0
votes
2answers
2k views

Loginuid, should be allowed to change or not (mutable or not)?

I am trying to configure the linux kernel. I was confused by Make audit loginuid immutable (AUDIT_LOGINUID_IMMUTABLE) [N/y/?]. The help says: +config AUDIT_LOGINUID_IMMUTABLE + bool "Make ...
0
votes
2answers
70 views

writing file names from subdirectories to a csv file in linux

Previously I have asked a very similar question but it was only for one subdirectory writing files in a subdirectory to a csv file and save it to parent directory in linux command line. I have a ...
0
votes
1answer
28 views

How to write linux find command with for loop on Jupyter

I am able to have a list of file names in a list named 'a' using the linux terminal command on Jupiter as follows; a=!find . -type f \! -name '*.*' -print To have the files names without extensions, ...
0
votes
1answer
1k views

Password length and complexity

I am using CentOS and I want to set the minimum password length, minimum password expiry , maximum password expiry and password complexity in my system. I have looked over some tutorials to change ...
0
votes
1answer
772 views

Using grep to find multiple repeating characters in a word

I have a word such as "interlinking" where the letters 'in' are repeated three times in the word. How can I search a dictionary.txt file using grep to find other words that have two letter repeats ...
-1
votes
3answers
543 views

how to print just the 'use%' column with all use % values by 'df -k' command

I want to print Use% column with all % value in 'df -k' command. I want to compare all those value to a variable value.
-1
votes
2answers
4k views

Install a package manager on a terramaster NAS

I got this NAS and while it has a decent amount of features, I was hoping i could extend them a bit. It's running a dual core Celeron with 2gb of ram. I tried to find the Linux distro, but it seems ...
-1
votes
1answer
595 views

What is ~/.cache/weather.xml?

I use a clock-date-weather conky and I noticed that it is related to the file ~/.cache/weather.xml. I am curious: was this file created by conky or by what other program? Is it present on the system ...
-1
votes
2answers
357 views

Has /bin/sh always been a symbolic link?

In Ubuntu, /bin/sh is a symbolic link that points to /bin/dash. Has there been a Unix or Unix-like operating system where /bin/sh was an actual shell and not a symbolic link that points to a shell?
-1
votes
2answers
174 views

How to improve the specific columns count AWK

I have a big text file, it has 46 columns in total: INPUT Column1 Column2 ... Column46 I need to enumerate and count how many times repeat in themselves from column 17 until the 46. For example: ...
-1
votes
1answer
179 views

linux + tool that can identify RAID configuration [duplicate]

I am searching for a long time tool that can runs as CLI on linux machine and identify which RAID configuration is defined on the disk or disks ( according to the list from lsblk ) the reason for ...
-1
votes
1answer
72 views

Why does atop open a raw socket?

I install atop on Debian 9. It runs as a monitoring daemon. Why is it listening on a raw socket? Raw sockets are used to generate arbitrary IPv4 packets or capture all packets read all packets for ...
-1
votes
1answer
842 views

Invalid port number while changing current directory through PuTTY in VBScript [closed]

I am using VB Script in QTP to connect to a UNIX server via putty. I need to list all files in the current directory, but am getting an "invalid port number" error when I run the script below: Set ...
-1
votes
1answer
590 views

SyslogNG-How to optimise filter and log statements? [closed]

Below is the current configuration for Syslog-NG logging, locally, source s_network { udp( flags(syslog_protocol) keep_hostname(yes) ...
-1
votes
2answers
3k views

Run command automatically after login?

Another quick question. I have installed f.lux on Ubuntu 12.04, however the program refuses to work unless I run a command xflux -l [longitude] -g [latitute] -k [temperature] So I've created an ...
-1
votes
1answer
404 views

How to automatically .tar a directory once it's moved to a folder [closed]

I need an .sh shell/bash script that will automatically tar a directory with the same name of the directory when I move the target directory into another directory (destination directory), So for ...
-1
votes
2answers
72 views

Linux + how to capture the OS disk device [closed]

we want to capture the disk device that belong to the OS ( Linux ) since each linux machine have list of disks that are not the OS , we want to capture the disk that belong to the OS so by fdisk ...
-1
votes
5answers
2k views

compare two files and print unmatched line number?

how can I print difference line number? example- compare File 1 vs File2 and print line no. for differnce record present in file 2. In file1: userD user3 userA user1 userB and In file2: user3 ...
-1
votes
1answer
262 views

How to sort and join files in linux with huge data and print blank values for the values which are not found

Consider the below files : file1: 1 2 3 4 file2: 2 3 6 9 expected output: 1 NULL 2 2 3 3 4 NULL NULL 6 NULL 9 I have tried paste file1 file2 | sed 's/\t/\0\t/g' | column -s $'\t' -t ...
-1
votes
2answers
36 views

Specifying the range of the arguments to print in every record line

We have a sample data as below EMP_ID|EMP_NAME|AGE|SALARAy|DepId|DepName 123456|XXXXXXXXX|30|10000000|1234|XYZWE I have used below code to split the data as below awk -F\| ' BEGIN { print "EMP_ID|...
-1
votes
2answers
80 views

When choosing a Docker container image file for my Ubuntu, what do I need to match between them?

When choosing a Docker container image file for my Ubuntu, so that it can run on my Ubuntu, what do I need to match between them? Do I need to choose image files for Linux but not for Unix (MacOS, ...
-1
votes
2answers
184 views

Why rsh not opens and reads PAM modules and limits.conf?

I am working on a project, that uses rsh utility for remote connection. But my project needs some extra features for that, so I add that features. Till now, all the things are going fine. But when I ...
-2
votes
2answers
175 views

cut an array column in csv [duplicate]

I want to cut an array column in a CSV file. For example if you see the below CSV file input.csv 1,2,"{1,2,3}",1 3,4,"{3,9,1}",2 8,9,"{10,12,30}",3 I want the output as output.csv 1,2,3 3,9,1 ...
-2
votes
1answer
412 views

Is every system call an atomic operation? [closed]

APUE says We saw another example of an atomic operation when we described the O_CREAT and O_EXCL options for the open function. When both of these options are specified, the open will fail if ...
-2
votes
1answer
361 views

How can I pause and resume all terminals that are running? [closed]

How can I pause and resume all command line commands on the terminal in Linux. Not ( Ctrl +s & Ctrl + q)
-2
votes
2answers
142 views

How to organize installed programs in $HOME for shell to search for them when running them? [closed]

I have written or downloaded some programs ( bash scripts, python scripts, java programs, C programs) and placed them under /home/t/program_files/. For each program, I create a directory under the ...
-2
votes
1answer
106 views

xargs: The command line for command is built up until it reaches a system-defined limit - What limit? [duplicate]

I looked briefly at the source code of xargs in findutils 4.6.0 and saw that 'n' defines: args_per_exec But there seems to be no default value for args_per_exec in find utils So where is the 'system-...
-2
votes
1answer
583 views

Linux “dump(8)” command

I intend to use dump(8) for backing up a Mint disk. Here is the documentation about it: http://linux.die.net/man/8/dump However—is it deprecated? (The documentation does not say it works with ...
-2
votes
1answer
36 views

Courier configure script failing to produce a Makefile [closed]

The "INSTALL" file for Courier Mail Server 1.0.6 specifies that the ./configure script will automatically select the correct settings for its parameters. Included below is a portion of the "config....
-2
votes
1answer
2k views

Steam: How to fix LibGL errors on Kali Linux / Debian [duplicate]

I'm trying to run and install Steam on Kali Linux 64bits and I get libGL errors like : Running Steam on kali kali-rolling 64-bit STEAM_RUNTIME is enabled automatically Installing breakpad exception ...
-3
votes
1answer
60 views

When the user of a shell is `root`, does running `su` on another user name ask for password of the other user?

When the user of a shell isn't root, running su on another user name will ask for password of the other user. When the user of a shell is root, running su on another user name doesn't ask for ...
-3
votes
3answers
65 views

How to do I convert the contents to the below format?

pid name tid mod state data ------------------------------------------------------------------------- 39523 srv0051_0001_0 39642 20-10:59:28 Working 820000:...
-4
votes
2answers
10k views

Linux error:No such file or directory

I have written a script abc.sh and saved it in a place called generallstuff. I navigate to this folder with: cd ~ /generallstuff when i try to run the script with: chmod 755 abc.sh i get the error ...
-4
votes
1answer
72 views

How to move files that have a last access time 2 years ago

I need a script that moves all files I didn´t use 2 years ago in another directory. Currently i got this: find /sourcedirectory -maxdepth 1 -atime -700 -type f -exec mv "{}" /destination/directory/ \; ...
-4
votes
1answer
585 views

Creating 2 directories in a different location

sample_dir2 -- sample_dir |-- admin |-- cambridge | `-- security | |-- annex | `-- parking |-- history.exe |-- markham | |-- annex | |-- building1 | `-- parking `-- stenton |...
-7
votes
1answer
6k views

creating directories in less than 3 commands [duplicate]

I can only use 3 commands to make 8 directories and a answer file.I used the first command to create a answer file. The second command I used to create 2 of the directories. I've run out of commands ...