60 Linux Commands you NEED to know (in 10 minutes)

NetworkChuck
16 Nov 202210:50

Summary

TLDREl script ofrece una guía rápida de 60 comandos esenciales de Linux, iniciando con la conexión a través de SSH, explorando directorios, creación y manipulación de archivos, así como comandos para la gestión de usuarios, redes e incluso la ejecución de tareas más avanzadas como la administración de servicios y el control de firewalls. Aborda también temas como la visualización de información del sistema y la optimización de recursos, logrando un equilibrio entre comandos básicos y más especializados.

Takeaways

  • 🔗 Para conectarse a una máquina Linux, se utiliza el comando SSH con la sintaxis: usuario@servidor.
  • 📂 El comando 'ls' lista los archivos en el directorio actual, con las opciones '-l' para detalles y '-a' para mostrar archivos ocultos.
  • 📍 'PWD' muestra el directorio de trabajo actual y 'cd' se utiliza para cambiar de directorio.
  • 💾 'touch' crea un nuevo archivo, mientras que 'echo' permite agregar contenido a un archivo.
  • ✍️ 'nano' es un editor de texto simple para Linux que se utiliza para editar archivos.
  • 🔍 'cat' muestra el contenido de un archivo, 'shred' permite eliminar un archivo de manera segura.
  • 📁 'mkdir' crea un nuevo directorio y 'cp' copia archivos, mientras que 'mv' se utiliza para moverlos.
  • 🗑️ 'rm' elimina archivos y 'rmdir' remove directorios, con la opción '-r' para eliminar de manera recursiva.
  • 🔗 'ln' crea enlaces simbólicos (soft links) a archivos y 'clear' limpia la terminal.
  • 👤 'whoami' muestra la información del usuario actual y 'sudo' permite ejecutar comandos con privilegios de superusuario.
  • 🔧 'apt' y 'yum' son gestores de paquetes para sistemas Linux, usados para instalar y actualizar software.
  • 🌐 'ping' y 'traceroute' son herramientas para verificar la conectividad y el camino de los paquetes a través de Internet.

Q & A

  • ¿Qué es el comando SSH y cómo se utiliza?

    -SSH (Secure Shell) es un protocolo de red utilizado para conectarse de forma segura a una máquina Linux. Se utiliza especificando el usuario, el símbolo '@' y la dirección del servidor al que se desea conectar. Este comando es esencial para acceder a una máquina Linux remota.

  • ¿Qué hace el comando LS y cuáles son sus opciones más útiles?

    -El comando LS lista los archivos en el directorio de trabajo actual. Para obtener una lista más detallada, se puede usar la opción '-l', y para ver los archivos ocultos, se utiliza la opción '-a'.

  • ¿Cómo se utiliza el comando PWD para determinar la ubicación actual en el sistema de archivos?

    -El comando PWD (Print Working Directory) muestra la ruta completa del directorio en el que se encuentra actualmente el usuario. Es útil para saber la ubicación exacta en el sistema de archivos.

  • Explique la función del comando CD y cómo se utiliza para navegar por el sistema de archivos.

    -El comando CD (Change Directory) se utiliza para cambiar el directorio de trabajo actual. Se escribe 'cd' seguido de la ruta al directorio al que se desea moverse. También se pueden usar 'cd..' para subir un directorio y 'cd' sin argumentos para volver al directorio home del usuario.

  • ¿Qué es el comando Touch y cómo se utiliza para crear archivos?

    -El comando Touch es una herramienta simple para crear archivos vacíos. Se escribe 'touch' seguido del nombre del archivo que se desea crear. También se pueden especificar varios nombres de archivo en una sola línea.

  • Explique el uso del comando Echo y cómo se puede emplear para agregar contenido a un archivo.

    -El comando Echo imprime una cadena de texto en la salida estándar. Para agregar contenido a un archivo, se utiliza la sintaxis 'echo' seguida de la cadena de texto y luego se redirige a un archivo utilizando la sintaxis '>'.

  • ¿Qué es Nano y cómo se utiliza para editar archivos?

    -Nano es un editor de texto simple y ligero para Linux. Se abre escribiendo 'nano' seguido del nombre del archivo que se desea editar. Para guardar el archivo en Nano, se presiona 'Ctrl + X', luego 'Y' para confirmar y finalmente 'Enter' para guardar los cambios.

  • Explique el comando Cat y sus usos básicos.

    -El comando Cat se utiliza para mostrar el contenido de un archivo en la salida estándar. Es una herramienta muy útil para leer archivos de texto y para combinar contenido de varios archivos.

  • ¿Qué hace el comando Shred y cómo se diferencia de eliminar un archivo?

    -El comando Shred elimina un archivo y sobrescribe el espacio en el disco para evitar la recuperación de datos. A diferencia de eliminar un archivo, Shred garantiza que el contenido sea irrecuperable.

  • Explique el comando MKDIR y cómo se utiliza para crear nuevos directorios.

    -El comando MKDIR (Make Directory) se utiliza para crear un nuevo directorio. Se escribe 'mkdir' seguido del nombre del directorio que se desea crear. Es una herramienta básica para organizar y estructurar el sistema de archivos.

  • ¿Qué es el comando RM y cómo se utiliza para eliminar archivos y directorios?

    -El comando RM (Remove) se utiliza para eliminar archivos y, a diferencia del comando 'rmdir', también permite eliminar directorios. Para eliminar un archivo, se escribe 'rm' seguido del nombre del archivo. Para eliminar un directorio, se puede usar 'rm -r' seguido de la ruta del directorio.

Outlines

00:00

🖥️ Comandos esenciales de Linux

Este segmento introduce los comandos básicos de Linux necesarios para navegar y manipular el entorno de un sistema Linux. Comienza explicando cómo utilizar el comando SSH para conectarse a una máquina Linux y sigue con comandos para listar archivos (LS), determinar el directorio de trabajo actual (PWD), cambiar de directorio (CD), y crear archivos (TOUCH). Además, cubre la edición de archivos con Nano y Vim, visualización rápida de contenidos de archivos (CAT), creación de directorios (MKDIR), copia y movimiento de archivos (CP y MV), y la eliminación de archivos y directorios (RM y RMDIR). Introduce también la creación de enlaces simbólicos (LN), la limpieza de la terminal (CLEAR), la identificación del usuario actual (WHOAMI) y el cambio de usuario (SU), además de gestionar permisos a través de SUDO. Se mencionan herramientas para instalación de software y manejo de paquetes (APT y FINGER), y se cierra con una invitación a utilizar Linode para prácticas de Linux.

05:01

🗜️ Manejo de archivos y diagnóstico de red

En esta parte se detalla cómo gestionar archivos y utilizar comandos para diagnósticos de red. Se empieza con la compresión de archivos (ZIP) y su descompresión (UNZIP), y se introduce la visualización de archivos de manera paginada con LESS. También se explica cómo usar HEAD y TAIL para ver el inicio y el final de archivos, respectivamente, y CMP y DIFF para comparar archivos. Para la organización de datos, se utiliza SORT. Se mencionan comandos para buscar archivos (FIND), cambiar permisos (CHMOD), y propiedad de archivos (CHOWN). Se introducen herramientas de diagnóstico de red como IFCONFIG, PING, y TRACEROUTE, junto con la gestión de puertos y firewall mediante NETSTAT, SS, y UFW. Finaliza con herramientas para monitorear el sistema y procesos (TOP, HTOP, PS, y KILL), y menciona comandos para la gestión de servicios (SYSTEMCTL y SERVICE).

10:03

🔄 Control y mantenimiento del sistema

La sección final se centra en comandos para el control y mantenimiento general del sistema Linux. Destaca el uso de SYSTEMCTL y SERVICE para gestionar servicios, cómo ver el historial de comandos ejecutados con HISTORY, y métodos para reiniciar o apagar la máquina (REBOOT y SHUTDOWN). También se hace mención a comandos útiles para obtener información del sistema, como UNAME y NEO FETCH, y herramientas adicionales para tareas específicas como visualizar el calendario (CAL) y realizar cálculos matemáticos directamente desde la terminal (BC). Se enfatiza la importancia de conocer estas herramientas para la administración eficiente de sistemas Linux y la resolución de problemas comunes.

Mindmap

Keywords

💡SSH

SSH (Secure Shell) es un protocolo de red utilizado para acceder de forma segura a una máquina Linux. En el video, se menciona como la primera herramienta esencial para utilizar Linux, ya que permite conectarse a la máquina y gestionarla de forma remota. Se utiliza especificando el usuario, el símbolo '@' y el servidor al que se desea conectar.

💡LS

El comando LS es una herramienta básica en Linux que lista los archivos y directorios en el directorio de trabajo actual. Con sus opciones, como el switch '-l' para un listado detallado y '-a' para mostrar archivos ocultos, es fundamental para navegar y visualizar el contenido de un directorio. Es mencionado en el video como una forma de ver los archivos en la ubicación donde se encuentra el usuario.

💡PWD

PWD (Print Working Directory) es un comando que muestra la ruta del directorio de trabajo actual. Es útil para saber en qué directorio se encuentra actualmente y planificar las acciones de navegación o manipulación de archivos. En el video, se destaca como una forma de orientarse en el sistema de archivos de Linux.

💡CD

CD (Change Directory) es un comando utilizado para cambiar el directorio de trabajo actual en un sistema Linux. Con él, se pueden moverse a través del sistema de archivos, hacia la raíz del sistema o cualquier otro directorio específico. Además, se puede utilizar 'cd..' para subir un nivel en la jerarquía de directorios y 'cd' para volver al directorio home del usuario.

💡TOUCH

El comando TOUCH es una herramienta simple para crear archivos en blanco en Linux. Es muy útil cuando se necesita iniciar un nuevo archivo o modificar la fecha de modificación de un archivo existente. En el video, se muestra cómo se puede utilizar para crear múltiples archivos a partir de una sentencia, o incluso crear un archivo con una fecha futura usando la opción '-d'.

💡ECHO

ECHO es un comando que permite mostrar texto en la terminal o agregarlo a un archivo. Es una herramienta sencilla pero poderosa para imprimir información o manipular archivos de texto. En el video, se menciona como una forma de comunicarse con uno mismo o agregar texto a un archivo, especificando el nombre del archivo y la información a insertar.

💡NANO

NANO es un editor de texto simple y fácil de usar en sistemas Linux. Es ideal para editar archivos de texto, como archivos de configuración o scripts, y se destaca por su interfaz intuitiva y las opciones de salvapantallas. En el video, se muestra cómo se puede utilizar para editar un archivo, con comandos como 'control + x' para salir y 'y' para confirmar los cambios.

💡CAT

CAT es un comando fundamental en Linux para visualizar el contenido de un archivo en la terminal. Es útil para leer archivos de texto y ver el contenido de forma rápida y sencilla. Además, se puede combinar con otros comandos para realizar tareas más complejas. En el video, se utiliza para ver rápidamente el contenido de un archivo y para ilustrar cómo se puede manipular y visualizar datos.

💡RM

RM (Remove) es un comando para borrar archivos en Linux. Es una herramienta esencial para gestionar el espacio en el sistema y mantener ordenado eliminando archivos innecesarios. También se puede utilizar con la opción '-r' para eliminar directorios y sus contenidos de forma recursiva. En el video, se menciona como una forma de limpiar y liberar espacio en el sistema.

💡CP

CP (Copy) es un comando que permite copiar archivos o directorios en Linux. Es esencial para crear copias de seguridad, duplicar archivos o moverlos de un lugar a otro en el sistema de archivos. En el video, se muestra cómo se puede utilizar para copiar un archivo a un nuevo directorio o cambiar su ubicación.

💡MKDIR

MKDIR (Make Directory) es un comando utilizado para crear nuevos directorios en el sistema de archivos de Linux. Es fundamental para organizar y estructurar el contenido del sistema de una manera lógica y coherente. En el video, se menciona como una forma de crear un nuevo directorio vacío y prepararlo para recibir archivos.

💡FINGER

FINGER es un comando que originalmente se utilizaba para obtener información sobre los usuarios del sistema. Aunque en el video se menciona que es extraño y requiere de instalación adicional, puede ser útil para inspeccionar detalles sobre otros usuarios o para verificar información de contacto. En el contexto del video, se destaca como una herramienta peculiar que puede ser de interés para usuarios avanzados.

Highlights

SSH is essential for connecting to a Linux machine by specifying the user, '@' symbol, and server.

The 'ls' command lists all files in the current working directory, with options to display hidden files and detailed listings.

The 'pwd' command reveals the print working directory, showing the current location within the file system.

The 'cd' command is used to change directories, with 'cd..' to move up one level and 'cd' to go home.

The 'touch' command is a quick way to create a new file by simply typing 'touch' followed by the file name.

The 'echo' command allows adding content to a file swiftly, using '>' to direct the output to a new or existing file.

Nano is a popular text editor in Linux, accessed by typing 'nano' followed by the file name for editing.

The 'cat' command is used to display the contents of a file quickly and easily.

The 'shred' command securely deletes files, making them unrecoverable, by overwriting them.

The 'mkdir' command creates a new directory, and 'cp' copies files to specified locations.

The 'mv' command moves files to new locations, and 'rm' commands delete files and directories.

The 'ln' command with '-s' creates soft links to files, and 'clear' cleans up the terminal.

The 'whoami' command reveals the current user identity, and 'sudo' allows executing commands with superuser privileges.

The 'useradd' and 'passwd' commands are used for creating new users and managing their passwords.

The 'finger' command, once installed, can be used to inspect user information on the system.

The 'man' command provides detailed manual pages for understanding and using various Linux commands.

The 'wget' and 'curl' commands are useful for downloading files from the internet.

The 'zip' and 'unzip' commands handle file compression and decompression tasks.

The 'less' command allows for reading files one page at a time, and 'head' and 'tail' show the beginning and end of files.

The 'cmp' and 'diff' commands compare files and highlight differences, with 'diff' providing more detailed output.

The 'sort' command organizes text alphabetically, and 'find' searches for files based on criteria like name and location.

The 'chmod' and 'chown' commands change file permissions and ownership, making files executable or assigning ownership.

Network commands like 'ifconfig', 'ip', 'ping', 'traceroute', 'netstat', and 'ss' provide valuable information about network settings and connections.

Firewall management is simplified with 'ufw', allowing easy rules for allowing or blocking ports.

System commands like 'uname', 'neofetch', 'cal', 'bc', 'free', 'df', 'ps', 'top', 'kill', 'systemctl', 'service', 'history', and 'reboot' offer insights and control over system processes and services.

Transcripts

play00:00

Here are the top 60 Linux commands you need to know,

play00:02

and we're gonna do this in 10 minutes. Our first command can be used anywhere.

play00:05

It's SSH because you can't use Linux unless you can get to it.

play00:08

To connect to your Linux machine, you'll specify your user it,

play00:11

then the ad symbol and then the server you're gonna connect to.

play00:13

So I'll copy the IP address of my lin node that I just set up past that in here.

play00:17

Hit enter. Accept all fingerprints.

play00:18

Put your password in and or in the LS command will list all the files in your

play00:22

current working directory.

play00:23

We can add the L switch to give us a nice list and we can add the A switch to

play00:28

see the hidden stuff. Elix is a big place. Where are you with the PWD command?

play00:32

You can find out print working directory. It'll tell you where you are,

play00:35

but if you don't wanna be there, we can change that with the CD command.

play00:37

Change directory. Just after CD will tell it where you want to go.

play00:40

Maybe the root of the file system who we made it guess or we can specify a

play00:44

specific path.

play00:44

With cd.dot we can jump back one directory and with CD space nothing,

play00:49

we can click our heels and get back. Home.

play00:51

Touch is the quickest and easiest way to create a file.

play00:53

Type in touch with a file name in you got yourself a file.

play00:56

We can create more than one file.

play00:57

Every one of those words in that sentence will be its own file .

play01:01

Or we can do something weird like this or we could even create a file in the

play01:04

future by using the dash D switch and specifying the date it's created a file

play01:08

from the future. And seriously shout out Tolin for sponsoring this video.

play01:12

Whenever I need to do anything in Lennox,

play01:13

I go Tolin node and spend out the quick virtual machine to do stuff like this.

play01:16

And it only costs me 0.01 cents an hour. When I'm done,

play01:19

I destroy it and that's all I'm charged. Check it out.

play01:22

Link below the Echo command allows you to talk to yourself or we can use it to

play01:26

add stuff to a file really quickly.

play01:27

We'll specify the right arrow and then a name of a file, a new or existing file.

play01:31

But if you really want to edit a file like a Linux Pro,

play01:33

you'll use Nano Nano and then the file name. And boom,

play01:35

we're editing a file to save your file with Nano,

play01:37

you'll hit control x Y and enter to save.

play01:41

Now if you're Lennox Pro that thinks you're better than everybody else,

play01:44

you'll use them, them the file name and now you can try to edit a file.

play01:48

The best way is to hit I to start inserting text and once you're done,

play01:51

hit Escape Colon and wq to write and quit.

play01:56

Now if you wanna see what's inside a file,

play01:57

really quickly use the Cat Command Cat and then the file name super fast.

play02:01

And if you don't want anyone to ever see what's in that file, you can shred it.

play02:04

Shred the file name and cat that one. Again,

play02:08

nothing looks like a cat road.

play02:10

We can make a new directory with the M K D I R command,

play02:12

but right now he's empty, it's lonely. So let's copy something in there.

play02:15

We can copy a file of the CP command.

play02:17

We'll specify our file and then where we want it to go. If you don't wanna copy,

play02:20

you can use the MV command to move the file, Specify the file,

play02:23

you wanna move and then where you wanna put it.

play02:25

We can remove or delete a file with the RM command and we can remove a directory

play02:29

with the RM D i R command. But if it's not empty,

play02:32

we can go back to the RM command and do a dash R for recursive and try that

play02:37

done.

play02:38

We can create a link to a file with the LM command using the S switch for soft,

play02:42

we'll specify the file and then the link. Now if your terminal's a bit dirty,

play02:46

you can clean it off, type in clear. Ah, so much better Coffee break.

play02:49

If you don't know who you are,

play02:51

you can type in who am I and it'll tell you existential crisis over.

play02:54

If you don't like who you are, you can change that.

play02:56

Let's first create a new person.

play02:57

We'll use the ad user command and then the username, Oh,

play03:01

too bad we don't have permission,

play03:02

but we have pseudo or psdo specify pseudo Before your command,

play03:05

enter your pseudo password and you're good to go.

play03:08

We can also reverse the command by doing ad user instead of user ad and we'll be

play03:12

able to set some parameters like passwords and stuff.

play03:14

Now if I wanna become Nick or Austin,

play03:16

I can do that with the SU command for Switch user.

play03:19

SU specify the username and I am Austin, but I don't wanna be Austin anymore.

play03:22

I can use the exit command, type in exit back to V and Me. And by the way,

play03:26

the exit command can be used to exit at a lot of places.

play03:29

Now Nick didn't have a password but I can change that with the password command.

play03:32

P A S S W D and then the username. If you wanna change your password,

play03:36

just type in password or password.

play03:37

Type into the terminal. Pseudo password, Millie password,

play03:40

but it's so it's just password .

play03:44

Now this next command is kind of weird and you'll have to install,

play03:46

it's called Finger . It's really strange, trust me.

play03:49

But to install that we'll need to learn a new command on Debbie and Base

play03:52

Machines. We'll use a P t but hold up. Before we can install anything,

play03:55

we have to update our repositories.

play03:56

So we'll do pseudo a P t update whilst doing, That'll take a coffee break.

play04:01

If you're on Red Hat or sent to West,

play04:02

you'll use the Yum package manager and if you're on Arch or anything else,

play04:05

you're on your own. After an update,

play04:07

we'll do a pseudo a P T install and the name of our package which will be finger

play04:11

done and now we can use that command Finger can be used to inspect another user.

play04:15

So I might want to inspect Austin. It's pretty handy.

play04:19

The Man command will help you with things you don't know, which is a lot,

play04:23

at least for me.

play04:23

You find out what the finger command does by doing Man Finger .

play04:26

That sounds weird. It'll tell us all about it and how to use it.

play04:29

Hit Q to get outta there. We can man Cat, we can man, man.

play04:32

So when in doubt consult your manual.

play04:34

Now a faster man is what is type in what is Finger.

play04:37

It'll tell you real quick or maybe you wanna know where finger is,

play04:40

you can type in which finger, which will tell you one place,

play04:42

but you wanna know where all the fingers are.

play04:44

So say where is Finger W Get can help you get stuff from the

play04:49

internet. Like maybe you wanna download the entire Bible in text form.

play04:51

We can do that right now. And there it is, the entire Bible.

play04:55

Another way to download is with Curl,

play04:56

my personal favorite type in curl the URL you wanna download from and then using

play05:01

the right arrow, direct that to something else like a file Done.

play05:06

Now the Bible's kind of big, what do you say? We made that file smaller.

play05:08

We can zip it up.

play05:09

Zip the zip file you wanna create and what you wanna zip inside.

play05:12

Hey that wasn't too bad.

play05:13

Now often you might want to unzip something with the unzip command,

play05:16

specify that file name and some other options and you're good to go.

play05:20

Now if we wanna read our file we could cat it but that's crazy. Come on.

play05:24

A better way is using the less command, giving you one page at a time.

play05:27

Just the way I like it.

play05:29

If you only wanna see the beginning of your file type in head,

play05:32

what about the end type and tail?

play05:34

If you wanna compare two files to see if they are the same,

play05:36

like this guy and this guy, use these CMP command for a compare.

play05:40

Specify your two files and hey,

play05:42

we do have a difference but it didn't tell us what it only told us where for

play05:45

that we can use the diff command specify files and it will tell us exactly

play05:48

what's different. You decide what's true,

play05:50

the sort command will sort your stuff alphabetically. So for example,

play05:54

I could cat the Bible,

play05:55

do a pipe and type in sort at the end the entire Bible in alphabetical order

play05:59

ending with Zephaniah.

play06:00

The fine command is nuts and will help you well fine things type in fine.

play06:04

Specify what directory you wanna look in.

play06:06

I'm gonna look in all of them and then specify a name of a file with a regular

play06:09

express BAM files found. You can also find all hidden files,

play06:13

empty directories or all executable files. And speaking of executable,

play06:17

how do you make a file executable?

play06:18

We'll change the attributes with the CH mod command and do a plus x and then the

play06:23

file name and now it executes.

play06:24

We can change the ownership of that file with the CHONe command or change

play06:28

ownership. Specify the user and then the file. Congrats Austin,

play06:31

you own a file time for some network stuff. Copy break. What's your IP address?

play06:36

I have config. If you don't have it, install it. Let's try it again.

play06:39

If F conf fit, there it is.

play06:40

You could also try IP address which makes more sense.

play06:43

Same information just better.

play06:45

Now what if you only wanna see it for one interface?

play06:47

For that we can use GR grip is crazy. I love gr same command IP address.

play06:52

For this time I'll use a pipe type inre and say Ethan Nets zero to only see

play06:56

Ethan at zero's IP address. Bam.

play06:58

We could grip again do another pipe grip for ANet and it only shows you that

play07:02

line. But what if we only wanna see the IP address for that?

play07:05

We can use a A is even crazier than gre.

play07:08

Just after our grips I'll A this put in a crazy regular expression and get

play07:12

exactly what I want. Now what about dns? What's our dns sir?

play07:15

One way is we can cat it.

play07:17

Cat the et tc resolve with no e.com file.

play07:22

But if you're on newer versions of things like Ubuntu,

play07:24

you might see something like this not very informative.

play07:26

Instead we can type in resolve with an E CTL status and there

play07:31

it is. Now is your website up? We can find out with Ping.

play07:33

We can find out if anything's up with ping ping and then the name of the

play07:36

website. Get responses forever. Hit control C to stop.

play07:40

We can limit that with a dash C command specifying the count of things we wanna

play07:43

send just five. We can specify the size of the packets.

play07:46

If you wanna see the path through the internet you're taking to get to a

play07:49

website, you can use the trace route command, which is so cool.

play07:52

Trace route and then the name of the site telling you every haw and that

play07:57

latency. Now what ports are open on your Linux machine?

play07:59

We can check it out with netstat net Statistics, this gives you a lot.

play08:03

Do you not wanna try netstat dash two lupin, all those switches,

play08:07

which is much better. A more modern version is the SS command,

play08:10

which is basically the same thing.

play08:12

Use a topen switches and it's nice and pretty. Now what about your firewall?

play08:15

Are things getting through or do you wanna block 'em?

play08:17

If you wanna to allow pour 80, you could run something like this,

play08:20

which is honestly kind of complex. That's why U F W is way easier.

play08:23

This sits on top of IP tables and makes it so much easier.

play08:26

If I want to allow pour 80,

play08:28

just do U F W allow 80 as psdo

play08:32

done. See what you're allowing with U FW status,

play08:35

which right now it's not even enabled.

play08:37

So we can enable it with U F W enable.

play08:40

Then check our status once more. Beautiful.

play08:42

Now if you wanna know a bit more about your system, you can use the you name,

play08:45

command, you name. It'll tell you just a little bit. If you type in dash A,

play08:50

it'll tell you a lot. Now if you want a prettier version of all this,

play08:53

try Neo fetch. Going to install that real quick.

play08:56

A t install neo fetch and then simply run Neo fetch. And how pretty is that?

play09:01

The Cal command will give you a quick little calendar here.

play09:04

I don't know why you want that, but it's kind of cool. If you don't have it,

play09:06

you can install it with pseudo A P t install n cal.

play09:08

If you wanna do some math right here in your terminal,

play09:10

you can echo a problem out to bcbc will tell you what the answer is.

play09:14

If you wanna check on your memory and see how much memory you have available on

play09:17

your system, just type in free.

play09:18

It'll tell you what's used and what's going on with your swap.

play09:21

How much space do you have?

play09:22

You can use the DF command and more specifically the DF dash capital H command.

play09:27

You're gonna use that one all the time.

play09:28

What about the stuff running on your system? The processes?

play09:30

We can use the PS command,

play09:31

which won't tell you much unless you use the PS A U X switch.

play09:35

Then we can get all the goodies.

play09:36

If you wanna see the processes eating up all your stuff, type in top.

play09:39

If you wanna see that in a prettier way, type in H top , that's slick.

play09:44

If you have a process that you want to kill it,

play09:47

we can do that with the kill command first we have to find the process id.

play09:49

I'll do that with ps. I'll grip for that script I wanna kill. There it is.

play09:53

There's this process ID and I'll kill the process with the dash nine signal

play09:58

forcibly killing it. And then the process ID 66 59. Goodbye buddy. He's gone.

play10:03

Now. Even better than kill is P kill because you don't need to know the process.

play10:06

ID type in kill, use the F switch and specified the name.

play10:10

You kind of think it is and it did it to stop,

play10:12

start and restart services or Damons and Linux.

play10:14

You can use the system CTL command at your systems using System D. If not,

play10:18

it'll be using service. So to stop a service system ctl, we do Apache two.

play10:23

Replace with start. We'll start the service,

play10:25

type in status to see what's going on or do a restart.

play10:28

Now we've gone through a lot of commands.

play10:29

If you want a history of all we did type in history and that's a lot of stuff.

play10:34

And finally, if you wanna reboot pseudo reboot. If you wanna shut down,

play10:38

pseudo shut down. This will shut down your machine in about one minute.

play10:43

If you want to do it now, do a dash H now, which I'll do.

play10:47

That's the end of the video. Talk to you guys later.

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Comandos LinuxSSH ConexiónAdministración de ArchivosNavegación de DirectoriosGestión de UsuariosSistemas de RedesFirewall ConfiguraciónProcesos y ServiciosProgramación de TareasMonitoreo de Sistemas