Linux Distributions

26K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).

Share tech news, updates, or what's on your mind.

Sign up to Post

i am in particular folder say abc.

I did ls -ltr where there are bunch of files.

i want to search all the files starting with file name xyz alone ignoring other starting with pqr etc(ignore pqr000.log.20170806.gz etc).
My search should result like

xyz123.log.20170806.gz
xyz456.log.20170806.gz
xyz789.log.20170806.gz etc



What is the command i have to use for that.

is it grep or find or something else.

when i gave grep xyz.* it did not gave any result.

how searching inside a file content is different from search outside on unix file names.

any good link on these commands? please advise
0
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

thanks !
0
how can I see all packages that are installed in a Ubuntu instance?

thanks
0
Hi experts

Require script to capture all root logins, through su - or direct login with root.


OS - CentOS 7
0
Hi,

In putty vi editor vi unix how to see later pages and change colors for bettwer view.

i open big property file not able to see what is at bottom.

how to search in vi editor for some text sat xyz.

setting i went i changed colors , font etc not reflecting.

what is best setting to give for better view

when i opened
abc.properties in vi
it says 536L, 28390C
what is L what is C
how to know how many lines there how many it is showing etc
can i use winscp free version for production servers viewing property files?
please advise
0
Hi,

I am fed up with putty with basic options.

Any better tools or IDEs to check logs or to grep unix/linux boxes.

Where  i can download secure ftp and how much is fees?
any advanced putty IDE there
any good free IDE accepted by industry.

please advise
0
Dear Experts,

How to copy or transfer a file from one Linux server to multiple Linux server in same network from a single cmd or script ? It should be a single line cmd for copy my file to multipal servers, don't want to use separate line for every server.

for example:
scp report_zonal 192.168.7.111 192.168.7.112 192.168.7.113 192.168.7.114:/home/Zonal/Desktop

i dont know it is possible or any other way to make it possible, please suggest

Currently i am using this method, it is working also, but i don't want to use this process.

[root@200 ftp]# cat FileTransfer.sh
#!/bin/bash
# transfer file to server
cd /root/
#DC Zonal
scp report_zonal 192.168.7.111:/home/Zonal/Desktop
scp report_zonal 192.168.7.112:/home/Zonal/Desktop
scp report_zonal 192.168.7.113:/home/Zonal/Desktop
scp report_zonal 192.168.7.114:/home/Zonal/Desktop
0
Hello!
I've got about 65GB of an unallocated space in Ubuntu Desktop 14.04 and I have no idea how to use it. When I try to make a new partition, it says that there could be only 4 primary ones.my partition scheme
0
how can I pipe standard error and standard error right to the screen

like if I do a sudo service start < some service>

and it fails is there a way to get verbose information  on why ?


thanks

I am new to this
0
I am looking for a command that will tell me in the whole host if I have the rights to the entire file system , if any files have changed in the last one minute or 5 minutes

I thank you very very much in advance and will reward pts right away !!!!
0
WordPress Tutorial 1: Installation & Setup
WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Hi,  I'm seeking guidance from team and sort out things out.  I currently hold a Security+ cert that's due to expire in 11/17 and at the same time moving to a new position that requires Linux support on the (desktop) client side.  So my question is, instead of renewing my Security+, study for Linux cert and use it as a CE for my Security+.  I'm required to maintain my security+ cert due to the nature of m y job but I'm interested in adding another cert to my resume.  
What do you guys think and the best place to start and plus study material?
I ordered "Red Hut Enterprise Linux 4 for DUMMIES" BOOK from eBay and it has CD as well.  I've a spare laptop and a desktop and enough resources to install Linux but I need guidance. BTW, I've been a Windows professional for many years and would like to mix things up a bit.
Your thoughts ??
0
Could I for example have this setup on a MacBook Pro with a 2 TB SSD drive?:

Mac OS X, Windows 10, the Chromebook OS, two Linux distributions, and Unix.

And then I can switch between each of these with the press of a button? Or, as I received an answer earlier regarding this, I instead need to log out and log into each of the OSs (there was some advantage with this)?

When it comes to making an image of the OSs for quick recovery when needed, should I have only 1 single backup image of the whole VM (including all OSs), or should I have separate backup images for each of the different OSs? I think the second alternative would be best, because it's always not optimal to use a backup image (the performance is not the same, somewhat less performance).

When it comes to being visible on the internet, would I be a more easy target using a MacBook Pro and the VM with different OSs?

What about wifi connection and noise from the fan for a MacBook Pro? Is the wifi working excellent to connect to any network, and is there no risk for a lot of noise from the fan when running software in different OSs or when accessing certain websites?
0
I cannot seem to find a good explanation of this.

thank you !
0
I use ubuntu and i have a scanner.  is this enough to make a digital signature?  i only know someone called me on the phone and wanted a signature but they knew nothing about ubuntu and ///////i know nothing about digital signatures.
0
[root@web02 ~]# cat /etc/*-release
CentOS release 6.8 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
CentOS release 6.8 (Final)
CentOS release 6.8 (Final)

[root@web02 ~]# yum info -v apache-tomcat-apis
Loading "fastestmirror" plugin
Config time: 0.076
Yum Version: 3.2.29
rpmdb time: 0.000
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.rafal.ca
 * extras: centos.mirror.rafal.ca
 * updates: ca.mirror.babylon.network
pkgsack time: 0.126
Installed Packages
Name        : apache-tomcat-apis
Arch        : noarch
Version     : 0.1
Release     : 1.el6
Size        : 246 k
Repo        : installed
From repo   : base
Committer   : Andrew Overholt <overholt@redhat.com>
Committime  : Tue Feb  2 07:00:00 2010
Buildtime   : Wed Nov 10 19:18:17 2010
Install time: Sun May 28 11:58:23 2017
Installed by: root <root>
Changed by  : System <unset>
Summary     : Tomcat Servlet and JSP APIs
URL         : http://tomcat.apache.org/
License     : ASL 2.0
Description : Apache Tomcat's Servlet 2.4/JSP 2.0 and Servlet 2.5/JSP 2.1 APIs.

[root@web01 ~]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)

[root@web01 ~]# yum info -v apache-tomcat-apis
Loading "fastestmirror" plugin
Config time: 0.009
Yum version: 3.4.3
rpmdb time: 0.000
Setting up Package Sacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.globo.tech
 * extras: centos.bhs.mirrors.ovh.net
0
in Unix

what is the meaning of below command



zgrep 'RPT|O|GetProducts' xyz.gz meaning
why we need RPT|o|
in the beginning what is the meaining of pipe here?
please advise
0
Dear Experts, I tried running the following GP program on my Fedora box:

package main

import (
	"io/ioutil"
	"log"
	"strings"
)

func main() {
	input, err := ioutil.ReadFile("/home/david/testdir/testfile")
	if err != nil {
		log.Fatalln(err)
	}

	lines := strings.Split(string(input), "\n")

	for i, line := range lines {
		if strings.Contains(line, "ChangeMeDoain") {
			lines[i] = "banana.com"
		}
	}
	output := strings.Join(lines, "\n")
	err = ioutil.WriteFile("/home/david/testdir/testfile", []byte(output), 0644)
	if err != nil {
		log.Fatalln(err)
	}
}

Open in new window


which should search for the string "ChangeMeDomain" and change it to "banana.com"

However, it changes the entire line.

Any ideas how to change only the string in question?
0
Hi,

Configuration Raspberry Pi 3 with camera
QNAP TS-453 Pro

I have a Raspberry Pi 3 up and running with the help of this image: http://ronnyvdbr.github.io/RaspberryIPCamera/
The guy who developed the image has a blog where he describes how to connect the Raspberry to Survellance Station:
https://random-notes-of-a-sysadmin.blogspot.nl/2016/03/howto-set-up-raspberry-ip-camera-on.html

I tried it and can connect to Surveillance Station, using these settings:

Camerabrand:       Generic Model
CameraModel:      Generic RSTP
Cameraname:        Camera 1
HTTP URL:              /
IP address:             192.168.10.10
Port:                        80
RSTP Port:              8554
Username:             <empty>
Password:              <empty>

When I use the rstp url in VLC, it works great: rtsp://192.168.10.10:8554
On Surveillance Station, every now and then the connection works, the camera in connected and I can see what it's filming.
After less than a minute the camera is disconnected.

For now it looks like the only times I had a successful connection when I played the stream in VLC as well....
But I can not reproduce that, because it's not working this way every time....

What could be the cause of this ?
0
Hi EE,

I have an old Ubuntu 12.10 that Im going to upgrade, but before doing that I would like to do a backup.
Im not an expert on Ubuntu and I have read https://help.ubuntu.com/community/BackupYourSystem but gotten stuck on what should I use to do a full backup of my Ubuntu before upgrading it?

Thanks.
0
What does it mean to be "Always On"?
LVL 4
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Update issue when running 'yum update'
Mirror list issue when running a 'yum update'
0
all of the sudden all my 3 VMs failed to boot.

RHEL 6.9  running on ESXi 6.5.  I have other VMs working fine.

I tried to boot from previous kernel 6.8 version. still same issue. I can't go to single user mode either.
no vmware VM configuration changed so far.
0
hey i am using kali linux and just trying to open Facebooker.pl in the terminal but it always says bash: ./Facebooker.pl :Permission Denied
0
Hi,

what are the best practices and features, options while using grep.

i am using these days to search in log files, files, directories, content etc

When should i give single quote '  '
like
zgrep 'xyz' aaa.gz


When should i give double quote " "
like
zgrep "xyz" aaa.gz


how to use tail and head etc along with grep to effectively monitor last or first 100 lines etc
please advise
0
Hi,

I keep getting below error when i wrote hello.sh shell script file and try to open it to.



Swap file ".hello.sh.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit, (A)bort:



why it created .swp file autoatically?
why it asks above question. How to tell unix not to ask that question.
please advise
0
Hi,

I am trying below program

http://www.programmingunit.com/2013/04/19/shell-script-to-check-leap-year/

how to save and execute above shell script and see output and send output to different files say test123.txt. please advise

i tried using vi editor as sample.sh and pasted content.

did esc to escape from isnert mode then shift zz to comeback to regular screen from vi mode

]$ vi sample.sh

[1]+  Stopped                 vim sample.sh

Not sure what it mean by stopped as above i saw message

when i ran getting error
]$ ./sample.sh
-bash: ./sample.sh: No such file or directory

when i do ls -ltr i do not see sample.sh though
0

Linux Distributions

26K

Solutions

20K

Contributors

A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).