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
1answer
71 views

How to hide script from process list in Linux?

I have a script in linux: #!/bin/bash export DISPLAY=:1 value=$(</home/pace/Desktop/BODVersion.txt) cd $value gnome-terminal \ --tab -t "CTCLManager" -e " sh -c 'sleep 1s; ./startapp ...
0
votes
0answers
28 views

What is the useful case of trapping shell script's EXIT? [on hold]

Trapping a shell script exit can be demonstrated like this. #!/bin/bash trap "ls -al" EXIT count=1 while [ $count -le 3 ] do echo "This is $count" sleep 1 count=$[ $count + 1 ] done ls -al ...
0
votes
2answers
56 views

Linux command to delete this

I want to delete this kind a pattern in my text file [-.(D_)-]. I did with sed and awk but no results. basically i want to delete anything that comes between [- & -] along with these characters ...
0
votes
1answer
34 views

How to properly write a string to a named pipe and the difference between echo and printf

Problem: I need to send a command to a named pipe and need to ensure only the command is sent and not any errant or "fat-fingered" characters. Example: I have been using the following: echo "...
0
votes
1answer
30 views

Can user space memory make the system go haywire?

So I was reading How Linux Works by Brian Ward. In it, he says, the user-space applications going bad will not wreck the system. Figure 1-1. General Linux system organization There is a critical ...
1
vote
1answer
25 views

My /usr directory is 100% full. Unable to download packages

What kinds of files are okay to delete in /usr directory without blowing up the server?? Is it possible to increase the size of /usr directory without blowing up server?
0
votes
1answer
34 views

Fix the output of uptime

So I've been experimenting with Bash not too long ago, and I want to manipulate the output from the "uptime" command. I managed to change the output of up x minutes to 0:05 for example if the up time ...
0
votes
1answer
19 views

Limit a VPN server's services to VPN connections only

I have a jump server and I want to put it behind a VPN, I do not want to deploy a separate VPN server and put my jump server behind it. I thought of installing OpenVPN directly onto my jump server and ...
2
votes
1answer
65 views

Linux From Scratch: Error while compiling binutils 2.32

I am working on Linux from Scratch and currently, I am on this page. While compiling binutils-2.32, I am getting this error: lfs@pop-os:/mnt/lfs/sources/binutils-2.32/build$ ../configure --prefix=/...
0
votes
1answer
14 views

Getting the last output from a stuck screen session

I have a very stuck screen session - I can see it in screen -ls, it shows as attached, but I can't detach it re-attach it, not even with "screen -D -RR". Trying the detach and re-attach in separate ...
0
votes
1answer
19 views

Postfix send e-mail on behalf of G Suite

I have a domain registered on G Suite and I'm building a app that needs to send Transactional email such as password recovery and email verifies. The smtp for gmail has a low quota for that. I need to ...
0
votes
0answers
14 views

How to copy ownership and permissions using rsync but not the files

I am using AWS CodeDeploy to copy files from git to the server. It can't overwrite the files, so I have to move the files to another temp location and then it moves the files from the repo to the ...
0
votes
1answer
32 views

Why does delete work but not arrow keys in terminal? [duplicate]

In a linux terminal I use "cat > file.txt" to make a file one line at a time. What I find is that per-line the delete key works but the arrow keys insert escape codes rather than moving left and ...
0
votes
0answers
9 views

Can i remove Android-x86 only by deleting its folder?, installed above another Linux distro?

By accident i made an installation of Android-x86 in my /dev/sda1 partition, i have an installation of Fedora in that partition (luckily i did not reformatted the partition). So i did a reboot and ...
0
votes
0answers
17 views

How does the task list continously accept processes?

I'm a research student whose work involves processes, and I had a question about Linux's task list. From what I understand, as long as the computer has booted up, it is accepting processes. The ...
0
votes
1answer
32 views

Linux unable to find and execute script, despite being in the correct directory [duplicate]

I have a basic start script for an application that I am trying to run. However, every time I execute it: ./start.sh It fails with this error: -ksh: ./start.sh: not found [No such file or ...
0
votes
1answer
21 views

replace string for name of file

I need to replace every instance of the word "Genus" in multiple files for their respective file name. Tried listing every file name and then using for line in `cat list_ids`; do sed 's/Genus/$...
0
votes
0answers
30 views

Sustrip <file.su> file.bin

I have downloaded fdelmodc package from https://github.com/JanThorbecke/OpenSource/tree/master/fdelmodc and installed it on Virtual box and Ubuntu desktop 18 and I downloaded and installed seismic ...
1
vote
1answer
24 views

Initiate rsync only if destination has enough space

Is there any option in rsync to check whether having enough space in the destination before starting to sync data? I checked the man page, but couldn't find anything related.
-1
votes
1answer
27 views

systemd Restart=always confusion

When we create and start a system service running, to run a script, if we include Restart=always in the .service file, does this mean that it again executes ExecStart after the script finishes and ...
1
vote
0answers
18 views

Difference virtual address space and process address space?

Is there a difference in the definition of a virtual address space and process address space or can they be used as synonyms? Sometimes it seems, that process address space means only the memory that ...
-2
votes
1answer
40 views

Why can't i “find” files *.png [duplicate]

System: Ubuntu 11.04, regular user account: find /usr/share -name *.wav works okay, but if i do: find /usr/share -name *.png it does not produce any output How do i change the last command to ...
2
votes
0answers
22 views

Can No Longer Login With Ec2-user After Creating A New User

I've tried looking in the forums before posting this but can't find anything that really addresses my issue. Very simply, my problem is in the topic: I created a new user, afterwards, I can login ...
0
votes
0answers
12 views

rsyslogd as a syslog forwarder over TLS (certificate based authentication required)

I want to configure a machines rsyslogd (redhat OS7 in this case) to connect via TLS to a central log collector. The resyslogd needs to authenticate with a client certificate. I already have the key, ...
0
votes
0answers
6 views

AntiX 17.4 Full,Problem converting interface to xfce

I want to convert antix to xfce 100% I did these steps sudo apt-get update -y;sudo apt-get install xserver-xorg x11-xserver-utils xfonts-base x11-utils lightdm lightdm-gtk-greeter xfce4 xfce4-goodies ...
0
votes
0answers
26 views

How can I override /bin in my PATH? [duplicate]

I would like to force default execution to happen from my home directory. However, regardless of what I try, it seems that the whereis utility finds programs to be in /bin instead of /home/user. E.g....
-1
votes
0answers
27 views

Possible to create a distribution without including the kernel and release it under BSD license? [on hold]

My friends and I want to create our own Linux distribution. We want it to be BSD licensed. We know the kernel is GPLv2, so our idea is to release the distribution without including the kernel, then ...
1
vote
1answer
24 views

What is the difference between minimal and full chroot?

While installing a linux distro I found many types of tar.gz files. But I found that, about every distro (For Different architecture) has two files indicated with minimal.tar.gz and full.tar.gz I have ...
0
votes
0answers
21 views

Port scanning test at a library

So I am trying to teach myself some basic networking skills. I dont have wifi at home so i frequently use public wifi. I am trying to ssh into my android phone so i can run commands remotely and be ...
0
votes
1answer
24 views

How to access kernel header files? [on hold]

I'm a student working with the Linux kernel, and was wondering how to access methods and macros in the kernel header files from outside the kernel in an OS. I apologize if this is an ignorant question,...
1
vote
0answers
24 views

Can't use pip in red hat 4.4.7

I've installed python 3.7 and pip, but running pip gives me an error: pip3.7 install django pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. ...
0
votes
0answers
4 views

configuring a process to control memory allocations

cgroup has various configuration setting to restrict the memory usage. memory.memsw.limit_in_bytes memory+swap memory.limit_in_bytes memory But, even though I add PID of a process in ...
0
votes
0answers
43 views

How to access data written in a socket without reading it [migrated]

I'm working on an embedded system having Linux. A client thread is writing some data in the socket but what server thread is reading on the other side isn't the same as it was written. Which is ...
-1
votes
0answers
24 views

How to test sftp connections to multiple servers with different username and passwords?

I have a situation where i need to check sftp connectivity to hundred of servers having different username and password combinations. I want to do it using a shell script but i am not sure how to do ...
1
vote
0answers
34 views

Different output from uptime command

When I use the uptime command on my linux vb, it shows its output like this before it has been on for longer than 1 hour; 13:45:25 up 40 min, 3 users, load average: 0.41, 0.37, 0.27 But after the ...
-1
votes
0answers
15 views

How to save backup of Fedora software repositories

I've recently switched from macOS to Fedora and am now creating my dotfiles for easy backup and easily switching machine. For the macOS dotfiles I have a file that does a lot of brew install package, ...
-1
votes
0answers
16 views

DNS resolution issue [closed]

I do have a domain named xxxx.co which runs on separate server acts as the main domain which is restricted from external access and there is a subdomain named dev.xxxx.co which is main domain runs on ...
2
votes
1answer
21 views

What's the difference between namespace size and namespace capacity?

Using nvme-create-ns, we can assign namespace size and namespace capacity; what's the difference? Is it necessary to do this before using a NVMe SSD?
1
vote
3answers
58 views

Fixed length file replace with sed or awk

I have 487 bytes fixed length file and each record position 407-415 (9 bytes) is a numeric field. Sometimes we are receiving combination alpha and numeric characters in that filed (123ABC123,...
0
votes
0answers
21 views

Chromeos Linux Beta

I am attempting to install Krita on my chromebook. I have 'turned on' linux beta and chromeos prompts me that 'Shared folders are available in Linux at /mnt/chromeos...' Issue debian@penguin:/mnt/...
0
votes
0answers
46 views

CentOS7 OpenSSH won't start with machine and hangs when ran via systemctl

The SSHD service is enabled on my VM, however it does not start when the machine boots. Further, if I run systemctl start sshd it simply hangs. If I manually run /usr/sbin/sshd, it starts no problem ...
1
vote
0answers
27 views

Any way to obtain an even bigger mouse cursor in linux?

Here is the size of my current mouse cursor... which is already at the highest setting (48). As you can see here: However I would really like to be able to increase this setting and go beyond (48), ...
1
vote
2answers
42 views

Setting up a PC to run the examples in “Linux Device Drivers” book

I am a programmer looking to gain expert experience into the workings of the Linux operating system. I have gone through many tutorials and materials on the basic workings of operating systems and ...
0
votes
0answers
12 views

Getting Reboot instead of Shutdown on Manjaro

I've seen this problem before, on the machine that i am having this bug i had Ubuntu and the same was going on but then i found a workaround that was to use ~# shutdown -P now instead of only ~# ...
1
vote
0answers
23 views

Deleting the files from a SFTP server based modified time (SSH not enabled )

Need to delete the files from a sftp remote server based on last modified time .Files which are older then 30 days no need to keep in server .I have tried ls -lt ,but how to copy it to local machine ...
0
votes
0answers
27 views

Extended partition size using fdisk

I want to create on my disk this table partition using the command fdisk. SWAP 10MB FAT32 25MB FAT32 15MB Linux 20MB FAT32 20MB I'm facing a problem: I know I can have only 4 primary ...
1
vote
0answers
34 views

Linux client program to connect to a virtual serial port

My connection: Linux with ser2net < RS-232 --- Ethernet > Linux I need freeware program to connect to a virtual serial port (RS-232) that i created with ser2net. Serial to Ethernet Connector ...
5
votes
2answers
243 views

How to generate list of *all* available commands and functions?

In Linux (I am using CentOS 7), there is a built in functionality to view all runnable commands. The command is run by pressing tab twice in the console followed by the prompt: Display all 1130 ...
1
vote
0answers
28 views

How to access a process descriptor that isn't the current one? [closed]

Is there any way to access a processes descriptor of a process that isn't currently running, preferably in C?
11
votes
2answers
988 views

Why do I seem to lose data using this bash pipe construction?

I am trying to combine a few programs like so (please ignore any extra includes, this is heavy work-in-progress): pv -q -l -L 1 < input.csv | ./repeat <(nc "host" 1234) Where the source of ...