All Questions

Filter by
Sorted by
Tagged with
-3
votes
1answer
40 views

Custom Commands in Linux

How to make a custom ls command that echoes first n cubes to a txt file. How to make this command inside a .sh file that executes and the command is implemented. Can we use the alias command?
0
votes
1answer
16 views

Why should differentiate the five levels yum repo, what's their respective responsibilities?

There is a CentOS.repo configuration: [base] name=CentOS-$releasever - Base baseurl=http://mirror.scalabledns.com/centos/7/os/$basearch/ gpgcheck=1 gpgkey=http://mirror.scalabledns.com/centos/7/os/...
0
votes
0answers
11 views

need a help for change the root chroot /mnt/sysimage in rescue mode

my grub file corrupted and entered to rescue mode. after at shell prompt, unable to change chroot /mnt/sysimage. I tried to ln -s /bin/bash /mnt/sysimage/bin/sh but not changed, copies some libraries ...
0
votes
1answer
12 views

How to “invalidate” or “flush” a range of cpu cache in powerpc architecutre?

I am working with an embedded device which communicates with my PowerPC CPU via PCIe. Due to the SDK constraints i have to use linux kernel version 4.1.8. This version doesn't have functions related ...
0
votes
0answers
14 views

Different output between du and ls -h on mongodb .wt file

$ du -sh 0--989303831270119069.wt 1.6T 0--989303831270119069.wt $ ll -h 0--989303831270119069.wt -rw-rw-r-- 1 mongo mongo 3.6T Oct 22 18:17 0--989303831270119069.wt I want to know why? Is it a ...
0
votes
2answers
54 views

What is the use of adding “.” (dot) in path variable?

echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/...
1
vote
1answer
23 views

List of files (the ones in subfolders included) older than a certain date

On a Unix server (Solaris) I would like to have a list of file like the output of ls -lrtR (i.e. all the files of a folder, included the ones in the subfolders, with the indication of their path and ...
0
votes
2answers
16 views

How get string git@… without scm:git:ssh:// and without developerConnection from pom.xml?

I have pom.xml: <scm> <developerConnection>scm:git:ssh://git@gitlab.com:anton_patsev/maven-release-example3.git</developerConnection> <tag>HEAD</tag> </scm> How ...
0
votes
2answers
30 views

Deployment systems for Linux

My project is based on a Raspberry Pi distro - Raspbian. But I made changes to it. There are a lot of them: changes in config.txt, adding system services, installing new packages, change the image of ...
0
votes
3answers
26 views

using aliases in function?

I have a script yummy.sh #!/bin/bash alias yumy='yum install -y ' yumprovision() { yumy } When I run this script got this bash: yumy: command not found why it's not loading alias in function?...
0
votes
1answer
23 views

find and replace with sed not working

I am trying to change a line in a file without -t to include it; sudo sed -i.bak 's|create cifs.spnego * * /usr/sbin/cifs.upcall %k|create cifs.spnego * * /usr/sbin/cifs.upcall -t %k|g' /etc/...
1
vote
1answer
32 views

Cisco Jabber for Linux?

Some people at our company are using a so called Cisco Jabber in Windows OS to improve handling of phone calls directly at the PC instead of using the telephone anymore. After installation, one has ...
1
vote
1answer
32 views

Easiest way to get directory tree indentation with +

I need to replace indentation in tree output with + signs so that instead of this: $ tree dir dir ├── dir1 │ ├── file1 │ └── file2 └── dir2 ├── file1 └── file2 it'd print this: $ tree ...
0
votes
0answers
5 views

How to config cobbler, then when a VM launch, it can execute full-automatic installation?

I follow the cobbler manual installed the cobbler, and I have imported some operating system isos into it. I started a vm, it entered this page for choosing OS: So, I have a question to it, where ...
0
votes
1answer
25 views

Search a pdf file and append a string to the filename

I have several PDF files that all contain the string "R E A D I N G n n", where n n is the number of the corresponding reading. There is exactly one space between every character, i. e. " R E A D I N ...
0
votes
0answers
6 views

Autostart listener and database when linux machine get reboot is not working

I have created dbora script and when I manually run dbora script using command - /etc/init.d/dbora start , it start listener and database. I have created symbolic link to dbora. But when I reboot the ...
0
votes
1answer
19 views

What does “numeric” redirect mean in Linux?

I found command like this (MYVAR=0 ./mybinary --my-arg myval) < ../input 5> ../output/5 1> ../output/1 What does 5> and 1> mean?
-2
votes
0answers
12 views

suse linux 11 sp 4 filezilla gives error 553 [on hold]

Getting error code 553 Anonymous users may not overwrite existing files ownership on home directory is 777
0
votes
1answer
19 views

Increase space in var mount point

My /var lvm space is full. I have 500 GB space in /dev/sdb filesystem which is already mounted to /mnt/data point and it has data in it. I want to move some space from /dev/sdb to /var lvm without ...
0
votes
0answers
11 views

How to fix '[oh-my-zsh] plugin 'tldr' not found'?

I followed the instructions here under 'Command-line autocompletion' - but I still get [oh-my-zsh] plugin 'tldr' not found whenever I source .zshrc. So I tried creating a "tldr" folder in .oh-my-...
0
votes
1answer
14 views

Are the contents of os/x86_64/ on public mirrors the same as those of CentOS ISOs?

When I mount a CentOS 7.2 ISO in /mnt/centos7/, then list its contents, I get: (I can not copy, I only can take a screenshot.) Now I enter a CentOS public mirror repo detail directory: http://mirror....
0
votes
1answer
19 views

chain a series of SSH logins and process killing

I need to log onto 100 pc's and stop the processes ran by a certain user on them. Manually I would say ssh comp01 killall -u user Which also logs me out of the computer, so then I can run. ssh ...
2
votes
1answer
20 views

Cannot enable TPM in the kernel

I'm building a machine with Yoctoproject. I need TPM module for some purposes but I can't enable it. I tried this way: I ran bitbake -c menuconfig virtual/kernel, accessed Device Drivers > ...
0
votes
0answers
22 views

Whats the meaning of ! in /etc/group? [duplicate]

I found some entries with a ! sign: wwwrun:!:496: ftp:!:459: The second part is the password, but normally it is set to x if it is empty. Whats the meaning of the !? Is it the password?
1
vote
2answers
38 views

How to cat multiple lines with indentation in bash function?

I have a bash function yumtelegraf() { cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo [influxdb] name = InfluxDB Repository - RHEL \$releasever baseurl = https://repos.influxdata.com/rhel/\...
0
votes
2answers
34 views

trim extension of files in an array with an effiecient way

displays files in module folders without extension as well as adding them into an array. function toolbox { array=(`ls "$1" | xargs`) len=${#array[array{@]} for (( i=0; i<$len; i++ )) do ...
0
votes
0answers
14 views

How to distinguish reply from the terminal from user input?

For example, in a program I want to get current cursor position on terminal (tput u7 or \E[6n on xterm): CSI P s n P s = 6 → Report Cursor Position (CPR) [row;column] as CSI r ; c R I write this ...
0
votes
0answers
24 views

How can I get colors to work in tldr plugin?

There's a plug-in (I believe this to be the right term) which is called 'tldr'. On the tldr page, you can see this screenshot: While I do have some color plug-ins installed (such as colorls and some ...
0
votes
0answers
19 views

How can I time a shell command n times and get some execution time distribution?

I have a shell command that I would like to time (e.g., a curl query). I don't want to time it once, but instead many times, so that I can get an empirical distribution of the execution time. How can ...
1
vote
0answers
18 views

bluetoothctl and scan and no result

I deleted my question and ask new question with new approch. I can't find any devices (mobile, headset ) with bluetoothctl command.According to Scan, Pair, Connect to Bluetooth device from Ubuntu from ...
3
votes
0answers
45 views

Clearing linux caches without root privileges

In order to clear caches, I usually invoke # echo 3 | tee /proc/sys/vm/drop_caches This requires root privileges. Why do I need to do this occasionally? Because it can have a huge impact on the ...
0
votes
2answers
37 views

How to use awk to use blank lines as record separators and to use newlines as field separators?

I have a file that I need to format a certain way. The records in the file have the following format; Record One Record Two Each record is separated by a blank line and each of the fields is ...
2
votes
3answers
48 views

Find N Most Frequent Words in a File and How to Handle Hyphen?

Let's say we have a file having following text: hello hel- lo world wor- ld test test he- lo words words If we just use the space as the delimiter, we would have hello: 1 world: 1 wor:1 ld:1 he: 1 ...
0
votes
1answer
16 views

settings for iptables “recent” module

when using the iptables recent module, I can see the module settings here: ls -1 /sys/module/xt_recent/parameters/ and list setting for particular parameter: cat /sys/module/xt_recent/parameters/...
0
votes
0answers
6 views

Create a UCI configuration file with all default options

Many aspects of OpenWRT are controlled by the configuration files in the /etc/config directory. It appears that some options are not well documented. For example, the minidlna service has a ...
14
votes
2answers
2k views

Allow all users to create files in a directory, but only the owner can delete

How can I use, preferably a single chmod command, which will allow any user to create a file in a directory but only the owner of their file (the user who created it) can delete their own file but no ...
0
votes
1answer
27 views

Does clock() return process or overall system clock count?

I'm trying to count the time it takes for a code segment to complete. But I'm not looking to determine the time it takes for the process to run, but rather the time it took all things considered, eg ...
0
votes
0answers
30 views

Is it possible to turn off the “SAFER” option in Ghostscript?

I have a latex program that creates an svg file looking like this: *** WARNING - you have selected SAFER, indicating you want Ghostscript to execute in a safer environment, but at the ...
0
votes
1answer
39 views

How to use bash variables in a awk command within bash for

I want to use a set of previous variables created to filter columns of a file called a.ped_snps.temp with awk within bash for loop. For this, I created bash variables: var_i_1, var_i_2, ... ...
0
votes
2answers
23 views

Iterating over files and preforming operations on them

I am relatively new to unix and linux bash scripting and have a few questions: First here is my script: for fileref in Ref/*.bed; do for filename in Data/*.bed; do bedops -e 1 $...
0
votes
2answers
48 views

Create bash prompt that shows the directory after my home directory

For example, if my home directory is 'FirstLast' and I am inside of /usr/FirstLast/Dir1/Dir2/Dir3 I want my prompt to read [username@srv1 Dir1] regardless of how deep in my directory I am. So the ...
0
votes
0answers
10 views

How to tell sendmail to send out all mail using Mandrill smtp, smtp port, username, api key?

How to tell my CentOS sendmail to send all the mails of my incoming SMTP using following credentials (which is a third party service, who deliver my mails)? Host smtp.mandrillapp.com Port 587 SMTP: ...
-1
votes
1answer
24 views

How to redirect to a file from a heredoc

I have this: cat <<EOF 'use strict'; exports.default = { 'display names': {} } EOF > "$PWD/tmp.js" but this is syntactically wrong apparently, anybody know the syntax to do this?
1
vote
1answer
18 views

Black screen in GRUB via DisplayPort

My PC specs: Motherboard: Asus Maximus V Gene CPU: Intel Core i7 3770 GPU: nVidia GeForce GTX 780 Ti Monitor: SAMSUNG C27JG50QQI 27" 144Hz OS: Arch Linux 5.3.7-arch1-1-ARCH I have to use ...
1
vote
0answers
23 views

How to list the contents of a directory using a symbolic link?

I'm trying to figure out how to list the contents of a directory using a symbolic link to that directory. I read the answers here - Show contents of symbolic link The problem I'm having is just that ...
1
vote
0answers
27 views

Sound gets saturated on Linux Mint

I'm having issues with sound on Linux Mint, it worked fine for long time but suddenly begin to saturate sporadically. First I thought it was software related issue but reinstalled Mint from zero and ...
0
votes
1answer
53 views

How to use if on csh FreeBSD from test if file is older then X minutes

I have the following code working in Debian system's: for File in "${Files[@]}"; do if test "`find $FolderDownload/$File -cmin -190`" ; then echo "File is new then 3 hours" # Set ...
0
votes
0answers
41 views

Bash history full of garbage after reboot

I am running Ubuntu 16.04 LTS. This morning my fan was going crazy so I started killing processes Chrome with a million opened tabs, virtual machines all sorts of high memory stuff that I wasn't ...
0
votes
0answers
21 views

Is it practical to run two hydra scans to bruteforce a password faster?

I have one computer running Kali Linux via VirtualBox which is currently running a hydra ssh attack. I have one spare Raspberry Pi 3B+ laying around. Would it be a good idea to split the wordlist in ...
1
vote
1answer
23 views

How to fire a udev rule after the kernel has registered a driver?

I have a MIDI keyboard "Impulse", and a raspi3. I want to connect the keyboard to the raspi, and having sounds without touching anything. So I use fluidsynth with jack as audio driver. Fluidsynth is ...

15 30 50 per page