Вы находитесь на странице: 1из 9

connect to the remote server (which is running linux ubuntu) via ssh

use the ip , user and password listed above to login

level 3.0

3.0.0

let's start at the very beginning, a very place to start

ssh into the machine. once you are logged in, write down the logging code you use

3.0.1 who is running for president

run this command

scrip -f/tmp/firstname_lastname

note : make sure to replace firstname by your firstname

and last name by your last name . you should see this message upon success

scrip started,file is /tmp/firname_lastname

3.0.2 where in the world are we?

pwd stands for "print working directory".this command outputs the full path of the directory you are
currently in , called the working directory

what is the path of the current working directory you are in affter you just logged in?write in down here

/root

3.0.3 go visit holberton

go the directory holbertonschool by typing cd holbetonschool once you've donde that, answer these
two questions
- what is your working directory?

- what is the name of the file contained in the holbertonschool directory

3.0.4

the files are IN the computer?

use the less command to read the file contained the holbertonschool directory? copy the content of the
file here

3.0.5 nano? Real programmers use emacs . install emacs on your server

3.0.6 fortune favor the brave

Fortune is a simple program that displays a pseudorandom message from a datebase of quotations
install and run the program fortune write down the adage (quote or phrase)here (if it’s super long,then
just the first line)

3.0.7 i left myy heart in sanfrancisco

Créate a new directory named ‘sanfrancisco’ in the directory /root

3.0.8 holberton is in san francisco

Copy the file located in the /root/holbetonschool directory to the /root/sanfrancisco directory,write the
command you used here
3.1.0 hidden files

what would be the command you would use to list all the files and directories of the current
directory,include hidden files, ".","..", and files strating with a dot

test it on your terminal . once you found the right command, write in down here

3.1.1 et cetera , et cetera and so forth

what is the directory that contains the the configuration files for the system? write it down here

3.1.2 copy cat

copy all the .txt files in the /root/txt directory to the /root/txt_copy directory what command did

yuo use?

3.1.3

i know it's here somewhere

what is the exact location of the program ls?

3.1.4

the latest and greatest

displays the 10 newest files in the current directory. write the command here

3.1.5 gotta catch 'em all

go to the /root/txt directory . whats is the command to display all the files ending in .txt

3.1.6

Write a command that can display the alphabet in the terminal lowercase, a to z each letter should be
sepad by a space . your command should not be larger tan 15 character long (spaces included):)
3.1.7 ‘’’holberton’’’

Créate a file called exactly “holberton” (with the “and the’) in your home directory.the output of is
should be

$ ls

“‘’’holberton’’’ hello init.disabled/sanfrancisco/txt_copy/

10-help-text_disabled*holbertonschool/olleh*txt/

3.1.8 betty is the man change you user to the user Betty. Write here the comando you used:

3.1.9 jannie and jay love asm

Change your user back to the root user. Who is the owner of the file
/root/txt/jennieAndJayLoveASM.asm?

3.1.10

Take some ownership

Change the owner of the file /root/txt/jennieAndJayLoveASM.asm to Betty write down your command
here

Traducción

conéctese al servidor remoto (que ejecuta Linux ubuntu) a través de ssh

usa la ip, el usuario y la contraseña arriba para iniciar sesión

nivel 3.0
3.0.0

Empecemos desde el principio, un lugar para comenzar.

ssh en la máquina. Una vez que haya iniciado sesión, escriba el código de registro que utiliza

3.0.1 quien se está postulando para presidente

ejecuta este comando

script -f / tmp / firstname_lastname

nota: asegúrese de reemplazar el nombre de pila por su nombre

y apellido por tu apellido. Deberías ver este mensaje después del éxito.

script iniciado, el archivo es / tmp / firname_lastname

3.0.2 ¿en qué parte del mundo estamos?

pwd significa "directorio de trabajo de impresión". Este comando muestra la ruta completa del
directorio en el que se encuentra actualmente, denominado directorio de trabajo

¿Cuál es la ruta del directorio de trabajo actual en el que se encuentra después de que acaba de iniciar
sesión? escriba aquí

3.0.3 ir a visitar Holberton

ve al directorio holbertonschool escribiendo cd holbetonschool una vez que hayas hecho eso, responde
estas dos preguntas

- ¿Cuál es tu directorio de trabajo?

- cuál es el nombre del archivo contenido en el directorio de holbertonschool

3.0.4

¿Los archivos están EN la computadora?


usa el comando less para leer el archivo que contiene el directorio de holbertonschool? Copia el
contenido del archivo aquí.

3.0.5 nano? Los verdaderos programadores usan emacs. instala emacs en tu servidor

Sudo apt-get install emacs

3.0.6 fortuna favorece a los valientes

Fortune es un programa simple que muestra un mensaje pseudoaleatorio de una base de datos de citas.
Instale y ejecute el programa fortune escriba el adagio (cita o frase) aquí (si es muy largo, solo la primera
línea)

Sudo apt-get install fortune

Condense soup , not books

3.0.7 dejé mi corazón en sanfrancisco

Cree un nuevo directorio llamado ‘sanfrancisco’ en el directorio / root

Mkdir sanfrancisco

3.0.8 holberton esta en san francisco

Copie el archivo ubicado en el directorio / root / holbetonschool al directorio / root / sanfrancisco,


escriba el comando que usó aquí

Cp /root/holbertonschool/holberton.txt sanfrancisco

3.1.0 archivos ocultos

¿Cuál sería el comando que usaría para enumerar todos los archivos y directorios del directorio actual,
incluir los archivos ocultos, ".", "..", y los archivos con un punto?

pruébalo en tu terminal. una vez que haya encontrado el comando correcto, escriba aquí

> ls -a
3.1.1 etcétera, etcétera, etc.

¿Cuál es el directorio que contiene los archivos de configuración para el sistema? escríbelo aquí

> /etc

3.1.2 copia{}fñdkvergi cat

copie todos los archivos .txt en el directorio / root / txt al directorio / root / txt_copy que hizo el
comando

tu uso?

> Cp /*.txt /root/txt_copy

3.1.3

Sé que está aquí en alguna parte

¿Cuál es la ubicación exacta del programa ls?

/bin/ls

3.1.4

lo último y lo mejor

muestra los 10 archivos más nuevos en el directorio actual. escribe el comando aquí

ls –lt | head -10

3.1.5 tengo que atraparlos a todos

ve al directorio / root / txt. ¿Cuál es el comando para mostrar todos los archivos que terminan en .txt?

ls *.txt

3.1.6

Escriba un comando que pueda mostrar el alfabeto en minúscula de la terminal, de la A a la Z, cada letra
debe estar separada por un espacio. su comando no debe ser más grande que 15 caracteres (espacios
incluidos) :)
echo \ {a..z}

3.1.7 "’ "holberton" ’"

Cree un archivo llamado exactamente "holberton" (con el "y el’) en su directorio de inicio. La salida de
debe ser

$ ls

"‘ ’’ Holberton ’’ 'hello init.disabled / sanfrancisco / txt_copy /

10-help-text_disabled * holbertonschool / olleh * txt /

PS

3.1.8 betty es el hombre que

cambia de usuario a usuario Betty. Escribe aquí el comando que usaste:

su Betty

3.1.9 jannie y jay love asm

Cambia tu usuario de nuevo al usuario root. ¿Quién es el propietario del archivo


/root/txt/jennieAndJayLoveASM.asm?

chown jennieAndJayLoveASM.asm

3.1.10

Tomar alguna propiedad

Cambie el propietario del archivo /root/txt/jennieAndJayLoveASM.asm a Betty escriba su comando aquí

! " # $ % & ' ( ) * +, -. / 0 1 2 3 4 5 6 7 8 9 :;= ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^


_`abcdefghijklmnopqrstuvwxyz{|}~

Вам также может понравиться