155 Answered Questions for the topic Linux
Linux Computer Science
02/04/21
Linux lab questions
3) Write the awk command that would show the user (or yourself) that is online (you have to use a pipe)Output, depending on the system, would be similar to:user...
more
Linux Computer Science
02/04/21
Linux Lab questions
Write the command that would find all lines that have an email address and place a label email = before the line in the file longfileYou would be searching for lines with the words from: to: Cc:,...
more
Linux Computer Science
02/04/21
Linux assignment lab question
Using awk, write the command that would print the line that contains the word "selected". This file has a lot of junk in it. So, you are just searching for the lines that contain the word...
more
02/04/21
UNIX Assignment
Log on to your UNIX system1. Give three different commands to get back to your home directory.2. Show the names of all hidden files in your home directory. Show your session.3. Write down the...
more
Linux
01/25/21
combining two sed -s
$ sed s/,/' '/g file.txt| sed s/'\.'/,/gI want to replace numbers into the SI format. ex: 1,000,000.53 would become 1 000 000,53, becomes ' ' and . becomes ,Is there a way I can combine this?
Linux Computer Science
12/05/20
how can i create a cron file called cronFile and set my cron job to run in the future? can i use touch , vim , nano for it ?
Linux
10/12/20
Use the “ip” command to determine your IP and netmask. Use the following to find the other box in your network segment. for i in {1..254};do (ping -c 1 192.168.9.$i > /dev/null && echo $i &); done
I need help figuring out this command
Linux
08/08/20
What is the disadvantage of using the cat command to display a very large text file? How can you get around this problem?
Linux
08/08/20
What is the relationship between man pages and info pages?
07/05/19
How to create a file in Linux from terminal window?
What's the easiest way to create a file in Linux terminal?
07/05/19
Exploring Docker container's file system?
I've noticed with docker that I need to understand what's happening inside a container or what files exist in there. One example is downloading images from the docker index - you don't have a clue...
more
07/05/19
How to count lines in a document?
I have lines like these, and I want to know how many lines I actually have...
09:16:39 AM all 2.00 0.00 4.00 0.00 0.00 0.00 0.00 0.00 94.00
09:16:40 AM all 5.00 0.00 0.00 4.00 0.00 0.00 0.00...
more
07/04/19
Merge / convert multiple PDF files into one PDF?
How could I merge / convert multiple PDF files into one large PDF file?
I tried the following, but the content of the target file was not as expected:
convert file1.pdf file2.pdf merged.pdf
I...
more
Convert DOS line endings to Linux line endings in vim?
If I open files I created in Windows, the lines all end with `^M`.
How do I delete these characters all at once?
Print a file skipping first X lines in Bash?
I have a very long file which I want to print but skipping the first 1e6 lines for example. I look into the cat man page but I did not see any option to do this. I am looking for a command to do...
more
Linux Grep
07/03/19
How can I use grep to show just filenames on Linux?
How can I use `grep` to show just file-names (no in-line matches) on Linux?
I am usually using something like:
find . -iname "*php" -exec grep -H myString {} \\;
How can I just get the...
more
What killed my process and why?
My application runs as a background process on Linux. It is currently started at the command line in a Terminal window.
Recently a user was executing the application for a while and it died...
more
./configure : /bin/sh^M : bad interpreter?
I've been trying to install lpng142 on my fed 12 system. Seems like a problem to me. I get this error
[root@localhost lpng142]# ./configure
bash: ./configure: /bin/sh^M: bad interpreter: No such...
more
06/28/19
Chmod 777 to a folder and all contents?
I have a web directory `/www` and a folder in that directory called `store`.
Within `store` are several files and folders. I want to give the folder `store` and all files and folders within the...
more
How to measure actual memory usage of an application or process?
**This question is covered [here][1] in great detail.**
How do you measure the memory usage of an application or process in Linux?
From the blog article of [Understanding memory usage on...
more
How do I test if a variable is a number in Bash?
I just can't figure out how do I make sure an argument passed to my script is a number or not.
All I want to do is something like this:
test *isnumber* $1 && VAR=$1 || echo "need a...
more
06/27/19
How do I delete an exported environment variable?
Before installing gnuplot, I set the environment variable `GNUPLOT_DRIVER_DIR = /home/gnuplot/build/src`. During the installation, something went wrong.
I want to remove the `GNUPLOT_DRIVER_DIR`...
more
06/27/19
Quickly create a large file on a Linux system?
How can I **quickly** create a large file on a Linux ([Red Hat Linux][1]) system?
[dd][2] will do the job, but reading from `/dev/zero` and writing to the drive can take a long time when you need...
more
06/25/19
How do I use sudo to redirect output to a location I don't have permission to write to?
I've been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don't normally have write access to.
The...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.