0% found this document useful (0 votes)
49 views3 pages

Lab Work

The document shows the steps a user took to create a Workshop directory and files on their system. They used basic Linux commands like mkdir, cd, ls, pwd, script, whoami, date, cat, echo to create files and directories and view information. They created two text files called test1 and test2 with different content, and used cat to view the content of both files combined on one line.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views3 pages

Lab Work

The document shows the steps a user took to create a Workshop directory and files on their system. They used basic Linux commands like mkdir, cd, ls, pwd, script, whoami, date, cat, echo to create files and directories and view information. They created two text files called test1 and test2 with different content, and used cat to view the content of both files combined on one line.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

┏━(Message from Kali developers)


┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/

┗━(Run: “touch ~/.hushlogin” to hide this message)
┌──(sujan㉿DESKTOP-M3KE5PI)-[~]
└─$ mkdir Workshop

┌──(sujan㉿DESKTOP-M3KE5PI)-[~]
└─$ pwd
/home/sujan

┌──(sujan㉿DESKTOP-M3KE5PI)-[~]
└─$ cd workshop
-bash: cd: workshop: No such file or directory

┌──(sujan㉿DESKTOP-M3KE5PI)-[~]
└─$ ls
alscript Laptop test1 test2 Workshop

┌──(sujan㉿DESKTOP-M3KE5PI)-[~]
└─$ cd Workshop

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ pwd
/home/sujan/Workshop

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ Script Lab_Work
-bash: Script: command not found

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ script Lab_Work
Script started, output log file is 'Lab_Work'.
┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ whoami
sujan

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ who

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ finger sujan
Login: sujan Name:
Directory: /home/sujan Shell: /bin/bash
Never logged in.
No mail.
No Plan.

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ date
Fri Dec 2 02:59:21 PM +0545 2022

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ ls
Lab_Work

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ la -a
. .. Lab_Work

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ ls -a
. .. Lab_Work

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ ls -a -l
total 4
drwxr-xr-x 1 sujan sujan 512 Dec 2 14:56 .
drwxr-xr-x 1 sujan sujan 512 Dec 2 14:54 ..
-rw-r--r-- 1 sujan sujan 1536 Dec 2 15:00 Lab_Work

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
sys:x:3:3:sys:/dev:/usr/sbin/nologin
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/usr/sbin/nologin
man:x:6:12:man:/var/cache/man:/usr/sbin/nologin
lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin
mail:x:8:8:mail:/var/mail:/usr/sbin/nologin
news:x:9:9:news:/var/spool/news:/usr/sbin/nologin
uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin
proxy:x:13:13:proxy:/bin:/usr/sbin/nologin
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
backup:x:34:34:backup:/var/backups:/usr/sbin/nologin
list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin
irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
_apt:x:100:65534::/nonexistent:/usr/sbin/nologin
systemd-network:x:101:102:systemd Network
Management,,,:/run/systemd:/usr/sbin/nologin
systemd-resolve:x:102:103:systemd Resolver,,,:/run/systemd:/usr/sbin/nologin
sujan:x:1000:1000:,,,:/home/sujan:/bin/bash

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ echo "this is a one-line file">test1

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ cat > test2
This is the file two.
It has several lines.
Three lines, in fact.

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ ls
Lab_Work test1 test2

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ cat test1 test2
this is a one-line file
This is the file two.
It has several lines.
Three lines, in fact.

┌──(sujan㉿DESKTOP-M3KE5PI)-[~/Workshop]
└─$ exit
exit
Script done.

You might also like