I am working in linux environment as a non root user. I am using users command to get the logged in users users But it returns the user names multiple times
I am trying to execute this command sudo mavproxy.py from a python script on raspberrypi. I can execute this in the shell and see it load. The code i have for
I'm trying to make shell script that counts 9 letters words consisted of A, G, C, T in B.txt. First, 9bp_cases.txt contains AAAAAAAAA AAAAAAAAG AAAAAAAAC AAAAAA
I want to thank you for helping me my related issue. I know if I do a cat /proc/meminfo it will only display in kB. How can I display in MB? I really want to us
Recently I'm interested in Golang. When I was learning Python I kicked off a terminal shell and just practised throwing it different data, f
I have two folders with some common files, I want to delete duplicate files from xyz folder. folder1: /abc/file1.csv /abc/file2.csv /abc/file3.csv /abc/fil
I'm writing a script to preform a repetitive task that only changes basic values and locations such as user name. I've written up code that prompts for a usern
Can anyone explain the difference between kill and kill -9. Thanks in advance.
I need to select two MSISDN values from OMO account Migration logs and print the ones that do not match. [2019-03-11 04:15:08 INFO-SUBAPP ESBRestClient:117] ##
Write a shell program to enter the process id of a particular process and show the process hierarchy of that specified process till the parent process whose pro
I have a file as follows 1 rob hr 10000 2 charls it 20000 4 kk Fin 30000 5 km it 30000 6 kl it 30000 7 mark hr 10000 8 kc it 30000 9 dc fin 40000 10 m
I'm trying to save the output of nettop from my terminal to a text file ( maybe .csv ) what I want to do is be able to isolate the different v
I have 2 files file1 and file2. Inside file1 I declare a var, x=1. In file2 I make a var x=2. If I run file one then file two, and then in the shell echo x, I g
I installed fish shell, installed few themes. Applied the theme "agnoster", all good is pretty but I want fish_prompt to override the original one and keep the
How can I fix this default sorting behaviour for ls in the macOS Terminal? I want the results to be case-insensitive and alphabetised. Here is an example to il
Inside a shell script I want verify public RSA file. All I want to do is that find a way to check this file is a genuine public key file, nothing else. Can I a
I am trying to write a shell script that can read a json string, decode it to an array and foreach through the array and use the key/value for replacing strings
I am trying to automate mysql_secure_installation script with automated response. My code is as follows : echo "& y y abc abc y y y y" | ./usr/bin/mysql_se
problem: ctrl+U will not kill my terminal program. details: Here are my results from ssty --all: speed 38400 baud; rows 24; columns 80; line = 0; intr =
I forget a command,could someone tell me? for example, $ makdir project-one-business-dev-2 $ cd project-one-business-dev-2 I don't want to type project's na