Linux Commands
Code:
ls
Lists everything in the directory.
Code:
ls -a
Lists with hidden files and directories.
Code:
ls -l
Lists all files by showing the size and date.
Code:
tar -zxpf << span> file .tar.gz>
The extension opens the compressed files that are tar.gz.
Code:
tar -xpf << span> file .tar>
Opens the .tar files.
Code:
gunzip << span> file .gz>
The extension opens the .gz files.
Code:
cp << span> file >
Copies the file.
Code:
mv << span> file >
Allows you to move a file to another directory or change the file name.
Code:
mkdir << span> index >
Allows you to create a new directory.
Code:
rmdir
Delete the specified directory.
Code:
rm
Allows you to delete files.
Code:
rm -rf
Allows you to delete the directory.
Code:
cd
Switch to the specified directory.
Code:
cd ..
Switch to an upper directory.
Code:
cd ~
Enables you to go to the top directory.
Code:
pwd
Displays the current directory.
Code:
pico
Lets you edit the specified file with a text editor.
Code:
ftp
Provides an FTP connection to the specified site.
Code:
lynx
Displays the specified site.
Code:
df
Shows harddisk statistics.
Code:
quote
Shows your disk usage.
Code:
uname
Indicates the status of the operating system.
Code:
whoAmI
Shows your own information.
Code:
wHO
Shows the ones connected to the server.
Code:
last
Indicates the most recent connection to your account.
Code:
whereis
Indicates where the specified file is located.
Code:
Bitch
Runs the IRC program.
Code:
Check your mail.
Code:
ps -x
Shows the operations that you are running.
Code:
ps -a
Shows all processes that are running on the server.
Code:
PS -ux
It shows the CPU / RAM usage of the running processes.
Code:
kill
The Pid number stops the operation.
Code:
kill -9
Pid number stops the given eggdrop process.
Code:
killall
Stops all operations of the specified program type.
whatis
Gives a description of the specified command.
Code:
man
Command help images
Code:
passwd
Shell allows you to change the password you used to enter your account.
Code:
vhosts
or vhost Lists the vhosts (virtual host) in the system.
Code:
useradd
: Adds a single user to the Linux system
Code:
userdel
: Removes existing users from the system
Code:
usermod
: Changes the properties of an existing user in the system
Code:
groupadd
: This command adds new groups to / etc / group
Code:
groupdel
: Deletes the groups in / etc / group from this file because of this file
Code:
groupmod
: Makes changes to group information in / etc / group
Code:
cd / home
= add users you know from here
Code:
rm -fr *
= deletes all files in the folder
Code:
wget url
= download.
Code:
w
: see who's online
Code:
wall
mesa posts users who are online on the server
Code:
ball
: cpu ram vs .. view stats
Code:
history
: see what commands you used in the past
Code:
work
: How many files are in that folder
Code:
unzip
: to open zip file,
Code:
reboot
: restart throws
saddle machine linux if you know you can apply them as domain example.com want to enter the host of the site
We are switching to cd / home folder.
What are you looking around?
after
cd httpd = behind it says
We're writing cd vhosts. Then using ls command, we know the domain extensions of the users that we opened in the panel.
work
we choose which domain we are going to host
cd domain.com
then we are past ftp sine.
ls we're going to know that he is in the host's ftp.
cd httpdocs do our job. What can we do with it?
++++ large files are able to download in 3 to 5 seconds. (Plesk)
This process can be carried out in the site transport process
Code:
water login
(skip the log you want)
information of a team.
php.ini file
root login
Code:
cd / etc
pico php.ini
we can see and make various adjustments.
Code:
chown user file
we grant access to the file
Code:
chmod file 777
We can play with the chmod setting of the file
No comments