Hey guys,
I've recently started learning Linux, and I was wondering if anyone can tell me how I can search for a specific usernames starting with a certain letter on a Linux system.
For example: How do I get it to display all the usernames starting with a J? (So that it would show me, Jack, Jason, John, etc...)
I tried to find the answer online, but haven't had much luck so far.
AOA
Good Morning!
first of all Congratulation to run a tremendous site, which help the needy and passionate people. I want to learn that but i cant find a right person.
Actually in our environment, we run Oracle Red-hat Linux 5.9.
I want to become a Linux administrator.
I have following experience of Oracle Red-hat Linux 5.9.
1. Linux Installation 5.9
2. Driver installation
3. IP Installation
4. How to set admin password
5. How to join domain
6. How to set system name
7. How to check system partition drives
8. How to access any specific folder
9. How to install specific software
10. How to off firewall
I would like to request the admin please, i want to do something new in Linux if anyone help me for learning...
My best wishes always with this side and specially for admin. you are really spread a right and useful information...
thanking you,
Best Regards,
Kamran Ali
They say there are no secrets in Linux. I am finding that learning about Linux is becoming a life long experience. I have just started using a Debian distribution that is behind the Raspberry pi. My first problem was that the display would go to sleep after about 15 mins when not used. I wanted to turn this feature off. That is I wanted the display to be on all the time.
After some web searching I came across a way to do this. It involved a file in the root area called "lightdm" which stands for light display manager (I think).
Then under this as a file called the lightdm.conf file. Just one line in the config file gets modified. Now doing this via the monkey see monkey do method works. But trying to find out how this works and exactly what the cryptic commands do, ends up being a frustrating endless search. I tried to find the source code for lightdm buts its documentation is certainly not for beginners.
I tried finding out what a "greeter" was once again huge amounts of time spent trying to make sense of endless terminology.
It seems that nowadays trying to learn about the details of any software system is just so hard. Like try and find good documentation on drivers.
Don't get me wrong I love the fact that at least Linux is open source but I wish there was an easy way to learn about it.
hi-
Today I switched my linux username and changed to /home/newname. I am doing this because it is not secure to broadcast your username to the world.
At this link:
http://askubuntu.com/questions/34074...ge-my-username
I am wondering if there is a way to do it a little better for me.
Quote:
You can either keep a symlink for backward compatibility, e g ln -s /home/newname /home/oldname or you can change the file contents with sed -i.bak 's/*oldname*/*newname*/g' *list of files* It creates a backup for each file with a .bak extension.
I tried to do a symlink.
It is not working exactly the way I had hoped. I may not understand it.
When I do the command ls -l I had to make an alias command with awk to parse out the user when i display it. That isn't a big deal but I noticed the oldname and newname are in the printout before filtering it with awk.
Also, my old home directory (the one that matches my /home/oldname is not deleted).
I can log in and the desktop looks fine. I indeed have a new /home/newname.
At one point can I delete the /home/oldname.
Is it okay that ls -l is picking up both usernames (new and old) in separate columns?
I wanted to bounce this off a more experienced user to see if there are some minor adjustments I can do to improve not having 2 home directories and if it is okay for ls -l to display both the old and new user name.
thanks!
mtdew3q
hello all,
i am using Centos 6. i want to disable boot log messages at the time of boot-up even after pressing any key like.. Esc,Alt+d,any arrow keys..
i tried to disable keys by using the command:
xmodmap -e "remove Escape = Escape" and all...
but its not working.
what should i do?? boot messages like this:
iptables: Applying firewall rules: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... done.
[ OK ]
Starting system logger: [ OK ]
Starting system message bus: [ OK ]
Retrigger failed udev events[ OK ]
Starting snmpd: netlink: 12 bytes leftover after parsing attributes.
[ OK ]
Starting snmptrapd: [ OK ]
Starting sshd: [ OK ]
Starting mysqld: [ OK ]
Starting Dovecot Imap: [ OK ]
Starting postfix: [ OK ]
Starting mailgraph: [ OK ]
Starting httpd: [ OK ]
Starting crond: [ OK ]
Starting squid: .[ OK ]
Starting fail2ban: [ OK ]
Starting atd: [ OK ]
I am new to Linux & Unix environment.
Could anyone please provide me the Internet URL where I can learn Linux online Free of Cost?
Where would I get a chance to do hands on while learning this new topic?
Thanks in advance for any king help
Regards,
Jayant
hi all
I am learning systemd and how to add new services as part of the LFS201 course and I have a question about the services:
Code:
Lab 4.2: Adding a New Startup Service with systemd
For example a very minimal file named
/etc/systemd/system/fake2.service:
[Unit]
Description=fake2
After=network.target
[Service]
ExecStart=/bin/echo I am starting the fake2 service
ExecStop=/bin/echo I am stopping the fake2 service
[Install]
WantedBy=multi-user.target
Code:
root@ubuntu:/etc/systemd/system# systemctl start fake.service
root@ubuntu:/etc/systemd/system# systemctl status fake.service
fake.service - fake
Loaded: loaded (/etc/systemd/system/fake.service; disabled; vendor preset: enabled)
Active: inactive (dead)
May 16 11:41:05 ubuntu systemd[1]: Started fake.
May 16 11:41:05 ubuntu systemd[1]: Starting fake...
May 16 11:41:05 ubuntu echo[1798]: I am starting the fake2 service
May 16 11:41:05 ubuntu echo[1800]: I am stopping the fake2 service
root@ubuntu:/etc/systemd/system# ps aux | grep fake*
root 1809 0.0 0.0 13688 2272 pts/8 S+ 11:41 0:00 grep --color=auto fake.service
root@ubuntu:/etc/systemd/system#
as you can see the fake2 service is really only two lines. And when I grep for the service via ps I can't fine it. I guess it is because it has finished running. I am wondering how can I change it so that I can keep it running?
thanks
Hello all.
I have been using Linux OS's of and on since 1996. I completely gave up on MS in 2006. I change out a hard drive in my PC and MS thought I should purchase a new site license, I did not agree with that train of thought.
I found that popping in a disk and getting Linux up and running was easy to the belief that "Nothing could be this easy". It really was. The learning curve was encountered when trying to make Linux Fly. I recommend that everyone new to Linux or anyone with a desire to do a bit more than e-mail, catalog some photos or music get your hands on a Linux command reference guide and learn the terminal. There is so much to understand and do With Free Open Source Software and there are so many ways to access, install and configure the available software. There are so many resources for help and trouble shooting all things Linux however, here's the caveat; I really had to learn how to ask the question to get an answer that worked for me. General question will get you general answers and rarely ever was the answer I sought found the hodgepodge of generalities found in forums or Google searches and the like. I learn to be very specific in my question and the answers were discerned with less difficulty. There are really answers or fixes for the questions I have had concerning Linux.
Here is the problem:
/usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256
Here are all the solutions I founded on the internet (NONE of them work):
rm -rf /var/tmp/rc_host_0
chown -rwx root:root /tmp
chmod 1777 /tmp
chmod 0755 /home
chmod a+rwx /tmp
chown -R root:root /var/lib/gdm
chmod -R 777 /var/lib/gdm
rm -rf /var/lib/gdm3/.*
rm -rf /var/lib/gdm/.*
rm -rf /Home Dir/UserName/.gcon*
rm -rf /Home Dir/UserName/.gnom*
rm -rf /Home Dir/UserName/.cache
rm -rf /Home Dir/UserName/.person*
touch /Home Dir/UserName/.personal.login
cat /etc/gconf/gconf.xml.system
mkdir -p /usr/local/etc/gconf/gconf.xml.default
chmod 775 /etc/gconf/gconf.xml.system
Here is my system information:
Linux Kernel v2.6.32-504.12.2.el6.x86_64
CentOS 6.6
GNOME 2.28.2
I have been searching for an answer all week and found NONE.
Somebody, Anybody please help!!!
The only solution I found that works is deleting all the .files, but there's got to be a better way.
I am totally unaware about linux;but I am suggested by my teachers to learn REDhat. i am not getting how to start;from where to get REDhat operating system;which book or online site to refer to;so that i can start learning REDHAT.
please as my question;give me a detailed answer.I really am naive at Linux.
Hi guys I just started learning Linux, Need some help writing the script for the following
1. An argument of the form-6 sets the script to display the first 6 lines of the succeeding file(s). the default should be 5.
2. Anything else of the form "-x" should produce an error message
3. For a file name, display the first _lines of the file