Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-05-2017, 08:48 AM
|
#1
|
LQ Newbie
Registered: Jan 2017
Posts: 3
Rep:
|
profile file
what exactly is a profile file and where do i go to find it?
edit:
How do you explain the contents of the command 'cat .profile'
Last edited by caseyneedshelp101; 01-05-2017 at 09:07 AM.
|
|
|
01-05-2017, 09:00 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,009
|
probably it is /etc/profile, but without context your question has no real meaning...
|
|
|
01-05-2017, 09:02 AM
|
#3
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,307
|
Welcome to the forum.
You need to give us some idea what profile you are looking for, there are many. Please also tell us what distro and version you are running. Without this type of information, we can only guess what you are looking for.
|
|
|
01-05-2017, 09:11 AM
|
#4
|
LQ Newbie
Registered: Jan 2017
Posts: 3
Original Poster
Rep:
|
there you go
Quote:
Originally Posted by camorri
Welcome to the forum.
You need to give us some idea what profile you are looking for, there are many. Please also tell us what distro and version you are running. Without this type of information, we can only guess what you are looking for.
|
How do you explain the contents of the command 'cat .profile'
|
|
|
01-05-2017, 09:28 AM
|
#5
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,307
|
The command is cat. From the man page;
Quote:
cat - concatenate files and print on the standard output
|
The command dumps the contents of the file to 'standard out', usually this is your console.
The file is called 'profile'. The period before the name makes the file hidden.
If you want to know more about the contense of the file, you will have to post the output.
|
|
|
01-05-2017, 09:29 AM
|
#6
|
Moderator
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,900
|
Hi and welcome to LQ, caseyneedshelp101.
Understand that LQ is here to help you learn. Members here are volunteers who similarly volunteer their expertise with answering questions, however also the expectation is that you are learning and trying on your own.
What do you know about the "cat" command? Have you looked it up? Have you tried to do a man page listing on the cat command? Are you typing at a terminal on a Linux machine? Do you know about how to get the man page for commands?
The command you've cited is a very simple command, and it does show in the man pages on Linux machines. Better that you read the manual page for cat versus us describe it to you. Better also that you use the cat command to see what it does for you. Note that there are other commands similar to cat which you can try, more and less are their names.
An important detail is that you need to be in a directory where the file is located, or specify the full directory name where the file is located for the command to be of any use. Typically people change to the directory where a file is, verify that a file is there, and then use the cat command to view the file.
Do you know how to change directories? Do you know how to list the files in a directory? Do you know how to list the hidden files in a directory?
Once again, are you typing at a command prompt, also known as a terminal window? If you are just asking a question as you read about something, you are likely to be confused a great deal.
Others have cited that you should provide the Linux distribution which you are using and the context of your question. We don't know if you are even at the point where you are typing commands into a terminal.
|
|
|
01-05-2017, 09:31 AM
|
#7
|
LQ Newbie
Registered: Jan 2017
Posts: 3
Original Poster
Rep:
|
thanks b x
Last edited by caseyneedshelp101; 01-05-2017 at 09:40 AM.
|
|
|
01-05-2017, 12:43 PM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,009
|
see man bash, you can read about .profile, just look for the word itself
|
|
|
01-07-2017, 06:46 AM
|
#9
|
Member
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
|
Hi 'casey'! Welcome! Here's a whole book I just found.
Feel free to tell us a bit about your Linux 'journey': computers used, goals/interests.
Here's a LQ Thread that mentions this #1rated book. ~/.profile is on p.129/132
Here's another LQ Thread where I posted a link to a free book I found&liked. p30
Several of the most popular ' distro's have reference books; which 'distro' do you use?
Last edited by Jjanel; 01-10-2017 at 03:30 AM.
|
|
|
All times are GMT -5. The time now is 08:09 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|