LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-08-2015, 11:26 AM   #1
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Rep: Reputation: Disabled
What is mean by these linux commands


Hello,

Code:
useradd 8618718235810     //user added
mkdir /home/8618718235810     //directory created


chown 8618718235810:8618718235810 /home/8618718235810
cp -r ~/tg  /home/8618718235810/
su 8618718235810
cd ~/tg && bin/telegram-cli
Can anybody please explain the above code?

Best regards
 
Old 09-08-2015, 11:31 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Line by line...

It creates a new user with the username "8618718235810" - which is a very odd username indeed
It creates a home directory for that new user
It changes the permissions of that directory to belong to the new user
It copies some directory called "tg" from root's home directory into this new user's home directory
It switches to the "8618718235810" user
It executes some file called telegram-cli located in ~/tg/bin in the new user's home directory
 
Old 09-08-2015, 11:35 AM   #3
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Original Poster
Rep: Reputation: Disabled
Thanks from the bottom of my heart
 
Old 09-08-2015, 11:36 AM   #4
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Original Poster
Rep: Reputation: Disabled
How to uninstall software in CentOS

Hello,

I installed one API using the following commands

Code:
git clone --recursive https://github.com/vysheng/tg.git
yum install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel libjansson-devel python-devel
./configure  --disable-json
make
how can I uninstall properly

Best regards
 
Old 09-08-2015, 11:41 AM   #5
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Original Poster
Rep: Reputation: Disabled
Code:
chown 8618718235810:8618718235810 /home/8618718235810
why this is written 8618718235810:8618718235810 in chown command? Is this command not enough to set permission "/home/8618718235810"
 
Old 09-08-2015, 12:26 PM   #6
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 14.04 LTS
Posts: 230

Rep: Reputation: 65
Quote:
Originally Posted by Raakh5 View Post
Code:
chown 8618718235810:8618718235810 /home/8618718235810
why this is written 8618718235810:8618718235810 in chown command? Is this command not enough to set permission "/home/8618718235810"
"/home/8618718235810" is not a command. It is the folder which permission you want to change and is used as argument for the chown command.

Because root created the directory "/home/8618718235810", it is then owned by root:root. For the user 8618718235810 to be able to login, this folder needs to be owned by him and his group (user:group).

If you don't understand, what a command is doing, type

Code:
man <command>
and in this case
Code:
man chown
into a terminal and read.

Last edited by hortageno; 09-08-2015 at 12:27 PM.
 
Old 09-08-2015, 01:03 PM   #7
Raakh5
Member
 
Registered: Mar 2012
Posts: 167

Original Poster
Rep: Reputation: Disabled
Thank again from the bottom of my heart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Low Level commands (embedded Linux, terminal commands) JonCombat Linux - Newbie 2 01-05-2013 03:34 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 07:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 07:53 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration