All Questions
0
votes
0answers
4 views
How to open project using PHPStorm when it is owned by root
I'm using Linux Mint. I have just created a project using Vagrant and Virtual Box and I created it as root. How should I open and edit project files using PHPStorm when it is owned by root? Thanks.
0
votes
1answer
6 views
Recursively compare root directory on Linux system A to root directory on Linux system B
I'm trying to diff all files on two Linux systems using rsync and ssh, by using the --dry-run option so it doesn't synchronize any files/folders. What am I doing wrong? I'm currently in the root ...
0
votes
1answer
10 views
Calculate file size and block-filesize of all files in a directory
How do I calculate the block-filesize that all the files in a directory take?
and how do I calculate the real size of all the files in the directory?
I tried some variations with df/du but they don't ...
2
votes
0answers
10 views
RedHat server updates its time every minute
RedHat release 7.3 This is a development machine, so I do not know its installation history. It was noticed that it did not keep its time synced very well, although ntpd is running.
My investigations ...
0
votes
0answers
7 views
mdadm root partition raid 1 fails intermittently
For a while I've been setting all servers up with software RAID 1 root and boot partitions in order to minimize downtime in case of disk failure. On install I set up
mdadm --create /dev/md0 --...
0
votes
0answers
13 views
How to block all connections made by a specific user?
I have 2 users
user1
user2
How can I drop all packets trigged by user1 and accept only those triggered by user2?
1
vote
1answer
19 views
View script output over ssh in real time
I am trying to run a local script on a remote machine with ssh.
Let's say this is the python script (printdelay.py) which I am trying to run:
from time import sleep
print("The first line")
sleep(...
3
votes
1answer
108 views
How does this Makefile makes C program without even specifying a compiler?
I was using a Makefile from the book "Advanced Linux Programming (2001)". It was strange for me to see that the Makefile does compile the code correctly, without even specifying a compiler. It's like ...
0
votes
0answers
6 views
How do I bind a bunch of /24 subnets (secondary) in one shot in Ubuntu 14?
I need to bind a bunch of /24 IPv4 subnets as secondary. The primary /29 is already set during the installation of Ubuntu 14x. How do I bind the remainder /24 subnets in one shot instead of individual ...
1
vote
1answer
22 views
Increment counter in find -exec
I have a script that runs a number of processes like this
./myproc1 --out=1.xml
./myotherproc --out=2.xml
./mythirdproc --out=3.xml
./myfourthproc --out=4.xml
# ... some more files
I want to ...
1
vote
0answers
21 views
Can't start tty, but gui works fine
I sometime can't start tty1~6, it just stuck as shown in the following picture. The gui always works when switch to tty7. What is the reason and how to solve it?
Edit:
I am using Ubuntu 16.04 with ...
1
vote
2answers
84 views
How to get the number of bytes in just one line of a file?
I am wondering how I can get the number of bytes in just one line of a file.
I know I can use wc -l to get the number of lines in a file, and wc -c to get the total number of bytes in a file. What I ...
0
votes
0answers
5 views
Memory Usage based on Process Name and not PID
can some one please help me with a linux command/script to get the average memory utilization for process based on its name and not PID.
Note: I need to get the average memory usage for last 10 days
...
0
votes
0answers
6 views
How to erase all unlinked data in a partition? [duplicate]
How to erase all unlinked data in a partition, that is put zeros in all space that is not assigned to a file.
In other words, prevent from a file being remove with rm (and not srm) to be recoverable?
...
1
vote
2answers
17 views
How to check if 'ls' outputs something… with a single command?
TL/DR: I'm working in Solaris 10. I have a ls ... | egrep ... command, and I need to know if it outputs any results or not. I could just add a | wc -c to the end; but I need the result (0 or non-zero) ...