SlideShare a Scribd company logo
1 of 51
Linux Survival Guide For
Data Scientists
1
www.xcodepro.com
Linux?
• Linux is a Unix-like and mostly POSIX-compliant computer operating system (OS)
assembled under the model of free and open-source software development and distribution.
(Wikipedia)
2
www.xcodepro.com
Initial release: October 5, 1991
Linus Torvalds, principal author of the Linux kernel
Linux can support many users
Linux is a multitasking operating system
Linux Kernel
• The Linux kernel is a Unix-like computer operating system kernel. The Linux operating
system is based on it. (Wikipedia)
• You can find the Latest Stable Kernel from the following link.
https://kernel.org
www.xcodepro.com
3
Linux Distributions
• 10 of the most popular free and open-source Linux Distributions
• CentOS
• Debian
• Ubuntu
• Arch Linux
• Linux Mint
• Fedora
• openSUSE
• Kubuntu
• Mageia
• Scientific Linux
www.xcodepro.com
4
Connect to Machine
• Use Putty to Connect to a Linux Machine on Windows
• Download and Install PuTTY - a free SSH and telnet client
• http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
• Launch the client
• Configure your connection by filling out Host Name (IP address of your machine), Port (22), set
connection type to SSH, and then click Open. If there any warning, click on ‘yes’.
• Enter your user name and password
www.xcodepro.com
5
Connect to Machine
• Use Terminal to Connect to a Linux Machine on Mac
• Go to Applications  Utilities, and open Terminal.
• To establish an SSH connection, enter the following command at the Terminal Prompt
• ssh username@IPaddress (Ex. ssh root@192.0.2.0)
• ‘Are you sure you want to continue connecting (yes/no)?’Type yes and press Enter key
• Enter the user’s password for your Machine
www.xcodepro.com
6
Linux Commands
• Learn some basic Linux commands to make your daily life easier
www.xcodepro.com
7
1. pwd
2. passwd
3. ls
4. chgrp
5. chmod
6. chown
7. ln
8. cp
9. mv
10. rm
11. mkdir
12. rmdir
13. du
14. free
15. man
16. sudo
17. vi
18. cat
19. tail
20. head
21. less
Linux Commands
• This guide is created for the Data Scientists who are very new to Linux
www.xcodepro.com
8
22. echo
23. sort
24. find
25. grep
26. top
27. ps
28. kill
29. diff
30. join
31. touch
32. expr
33. test
34. wget
35. tar
36. bunzip2
37. bzip2
38. zip
39. unzip
40. gunzip
41. gzip
42. shutdown
1. pwd
• Print Working Directory
www.xcodepro.com
9
2. passwd
• Change your password
www.xcodepro.com
10
3. ls
• List the names of files
www.xcodepro.com
11
4. chgrp
• Changes the group association of the files and directories
• chgrp [OPTION]... GROUP FILE...
www.xcodepro.com
12
5. chmod
• Changes the access mode or permissions of a file
• chmod [options] mode file-list
www.xcodepro.com
13
u User (Owner)
g Group
o Other
a All
r Sets read permission
w Sets write permission
x Sets execute permission
6. chown
• Change a owner of a file and/or the group the file is associated with
• chown [options] owner:group file-list
www.xcodepro.com
14
7. ln
• Makes a link to a file or directory
www.xcodepro.com
15
8. cp
• Copies files or directories
• cp [options] source-file destination-file
www.xcodepro.com
16
9. mv
• Renames or Moves files
• mv [options] existing-file new-file
www.xcodepro.com
17
10. rm
• Remove a file
• rm [options] file-list
www.xcodepro.com
18
-f force
-i interactive
-r recursive
11. mkdir
• Create a directory
• mkdir [options] directory-list
www.xcodepro.com
19
12. rmdir
• Remove directories
• rmdir directory-list
www.xcodepro.com
20
13. du
• Disk usage
www.xcodepro.com
21
-h human readable
-s summarize
14. free
• Check memory usage
www.xcodepro.com
22
15. man
• Displays documentation for utilities
• Man [option] command
www.xcodepro.com
23
16. sudo
• sudo allows a permitted user to execute a command as the superuser or another user, as
specified by the security policy.
www.xcodepro.com
24
17. vi
• A text editor
www.xcodepro.com
25
18. cat
• Concatenate file(s), or standard input, to standard output.
www.xcodepro.com
26
19. tail
• Print the last 10 lines of each FILE to standard output.
www.xcodepro.com
27
20. head
• Print the first 10 lines of each FILE to standard output.
www.xcodepro.com
28
21. less
• less is a filter for paging which allows backward movement in the file as well as forward.
movement.
• Less /proc/cpuinfo
www.xcodepro.com
29
22. echo
• Echo the STRING(s) to standard output.
www.xcodepro.com
30
23. sort
• Sort lines of text files
www.xcodepro.com
31
24. find
• Search for files in a directory hierarchy
www.xcodepro.com
32
25. grep
• grep prints the matching lines.
www.xcodepro.com
33
26. top
• Display Linux processes
www.xcodepro.com
34
27. ps
• ps displays information about a selection of the active processes.
www.xcodepro.com
35
28. kill
• Terminate a process
• kill PID_of_target_process
www.xcodepro.com
36
29. diff
• Compare files line by line.
www.xcodepro.com
37
30. join
• Join lines of two files on a common field.
www.xcodepro.com
38
31. touch
• Change file timestamps
www.xcodepro.com
39
32. expr
• Evaluate expressions
www.xcodepro.com
40
33. test
• Check file types and compare values
www.xcodepro.com
41
34. wget
• The non-interactive network downloader.
www.xcodepro.com
42
35. tar
• Saves many files together into a single tape or disk archive, and can restore individual files
from the archive.
• Create archive.tar from files foo and bar
• tar -cf archive.tar foo bar
• List all files in archive.tar verbosely
• tar -tvf archive.tar
• Extract all files from archive.tar
• tar -xf archive.tar
www.xcodepro.com
43
36. bzip2
• bzip2 compresses files using the Burrows-Wheeler block sorting text compression algo‐
rithm, and Huffman coding.
• bzip2 file1 file2 file3
www.xcodepro.com
44
37. bunzip2
• bunzip2 (or bzip2 -d) decompresses all specified files. Files which were not created by
bzip2 will be detected and ignored, and a warning issued.
www.xcodepro.com
45
38. zip
• Package and compress (archive) files
www.xcodepro.com
46
39. unzip
• list, test and extract compressed files in a ZIP archive
www.xcodepro.com
47
40. gzip
• gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).
www.xcodepro.com
48
41. gunzip
• gunzip can decompress files created by gzip or zip
www.xcodepro.com
49
42. shutdown
• Halt, power-off or reboot the machine
www.xcodepro.com
50
About
• Website: https://www.xcodepro.com
• LinkedIn: https://www.linkedin.com/in/ajitkumarjain
www.xcodepro.com
51
“Think Beyond Artificial Intelligence” - Ajit

More Related Content

What's hot (19)

Administration
AdministrationAdministration
Administration
 
Linux again
Linux againLinux again
Linux again
 
AOS Lab 7: Page tables
AOS Lab 7: Page tablesAOS Lab 7: Page tables
AOS Lab 7: Page tables
 
Linux 101
Linux 101Linux 101
Linux 101
 
Burp suite
Burp suiteBurp suite
Burp suite
 
Linux cmd
Linux cmdLinux cmd
Linux cmd
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
Systems Programming - File IO
Systems Programming - File IOSystems Programming - File IO
Systems Programming - File IO
 
Fun with FUSE
Fun with FUSEFun with FUSE
Fun with FUSE
 
Redis
RedisRedis
Redis
 
FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016FreeBSD Portscamp, Kuala Lumpur 2016
FreeBSD Portscamp, Kuala Lumpur 2016
 
CS50x Permissions, Files, Users
CS50x Permissions, Files, UsersCS50x Permissions, Files, Users
CS50x Permissions, Files, Users
 
Moscow virtualization meetup 2014: CRIU 1.0 What is next?
Moscow virtualization meetup 2014: CRIU 1.0 What is next?Moscow virtualization meetup 2014: CRIU 1.0 What is next?
Moscow virtualization meetup 2014: CRIU 1.0 What is next?
 
Basic unix commands1
Basic unix commands1Basic unix commands1
Basic unix commands1
 
Containers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux KernelContainers and Namespaces in the Linux Kernel
Containers and Namespaces in the Linux Kernel
 
UNIX introduction
UNIX introductionUNIX introduction
UNIX introduction
 
Introduction to UNIX
Introduction to UNIXIntroduction to UNIX
Introduction to UNIX
 
Namespace
NamespaceNamespace
Namespace
 

Similar to Linux Survival Guide For Data Scientists

KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptxGanesh Bhosale
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-serviceRohit Sansiya
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptxGuhanSenthil2
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxHemantJadhao3
 
unit 3 ppt file represented system......
unit 3 ppt file represented system......unit 3 ppt file represented system......
unit 3 ppt file represented system......AnshJaiswal31
 
00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdfDiana Atef
 
Arch Linux Package 的前世今生
Arch Linux Package 的前世今生Arch Linux Package 的前世今生
Arch Linux Package 的前世今生yan12125
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in DetailDamian T. Gordon
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsQUONTRASOLUTIONS
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
OMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
OMFW 2012: Analyzing Linux Kernel Rootkits with VolatlityOMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
OMFW 2012: Analyzing Linux Kernel Rootkits with VolatlityAndrew Case
 
17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboardsDenis Ristic
 
From Zero to Hero - Contribute to Linux Kernel in 15 Minutes
From Zero to Hero - Contribute to Linux Kernel in 15 MinutesFrom Zero to Hero - Contribute to Linux Kernel in 15 Minutes
From Zero to Hero - Contribute to Linux Kernel in 15 MinutesGlobalLogic Ukraine
 
How to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNHow to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNGene Kartavtsev
 
linux-lecture1.ppt
linux-lecture1.pptlinux-lecture1.ppt
linux-lecture1.pptjeronimored
 

Similar to Linux Survival Guide For Data Scientists (20)

KMSUnix and Linux.pptx
KMSUnix and Linux.pptxKMSUnix and Linux.pptx
KMSUnix and Linux.pptx
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptx
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptx
 
unit 3 ppt file represented system......
unit 3 ppt file represented system......unit 3 ppt file represented system......
unit 3 ppt file represented system......
 
00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf
 
Linux Basics.pptx
Linux Basics.pptxLinux Basics.pptx
Linux Basics.pptx
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Arch Linux Package 的前世今生
Arch Linux Package 的前世今生Arch Linux Package 的前世今生
Arch Linux Package 的前世今生
 
Operating Systems: Linux in Detail
Operating Systems: Linux in DetailOperating Systems: Linux in Detail
Operating Systems: Linux in Detail
 
Docker Dojo
Docker DojoDocker Dojo
Docker Dojo
 
Hands On: Linux survival skills
Hands On: Linux survival skillsHands On: Linux survival skills
Hands On: Linux survival skills
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra Solutions
 
Introduction to Linux
Introduction to LinuxIntroduction to Linux
Introduction to Linux
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
OMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
OMFW 2012: Analyzing Linux Kernel Rootkits with VolatlityOMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
OMFW 2012: Analyzing Linux Kernel Rootkits with Volatlity
 
17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards17 Linux Basics #burningkeyboards
17 Linux Basics #burningkeyboards
 
From Zero to Hero - Contribute to Linux Kernel in 15 Minutes
From Zero to Hero - Contribute to Linux Kernel in 15 MinutesFrom Zero to Hero - Contribute to Linux Kernel in 15 Minutes
From Zero to Hero - Contribute to Linux Kernel in 15 Minutes
 
How to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MNHow to Audit Linux - Gene Kartavtsev, ISACA MN
How to Audit Linux - Gene Kartavtsev, ISACA MN
 
linux-lecture1.ppt
linux-lecture1.pptlinux-lecture1.ppt
linux-lecture1.ppt
 

Recently uploaded

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 

Recently uploaded (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 

Linux Survival Guide For Data Scientists

  • 1. Linux Survival Guide For Data Scientists 1 www.xcodepro.com
  • 2. Linux? • Linux is a Unix-like and mostly POSIX-compliant computer operating system (OS) assembled under the model of free and open-source software development and distribution. (Wikipedia) 2 www.xcodepro.com Initial release: October 5, 1991 Linus Torvalds, principal author of the Linux kernel Linux can support many users Linux is a multitasking operating system
  • 3. Linux Kernel • The Linux kernel is a Unix-like computer operating system kernel. The Linux operating system is based on it. (Wikipedia) • You can find the Latest Stable Kernel from the following link. https://kernel.org www.xcodepro.com 3
  • 4. Linux Distributions • 10 of the most popular free and open-source Linux Distributions • CentOS • Debian • Ubuntu • Arch Linux • Linux Mint • Fedora • openSUSE • Kubuntu • Mageia • Scientific Linux www.xcodepro.com 4
  • 5. Connect to Machine • Use Putty to Connect to a Linux Machine on Windows • Download and Install PuTTY - a free SSH and telnet client • http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html • Launch the client • Configure your connection by filling out Host Name (IP address of your machine), Port (22), set connection type to SSH, and then click Open. If there any warning, click on ‘yes’. • Enter your user name and password www.xcodepro.com 5
  • 6. Connect to Machine • Use Terminal to Connect to a Linux Machine on Mac • Go to Applications  Utilities, and open Terminal. • To establish an SSH connection, enter the following command at the Terminal Prompt • ssh username@IPaddress (Ex. ssh root@192.0.2.0) • ‘Are you sure you want to continue connecting (yes/no)?’Type yes and press Enter key • Enter the user’s password for your Machine www.xcodepro.com 6
  • 7. Linux Commands • Learn some basic Linux commands to make your daily life easier www.xcodepro.com 7 1. pwd 2. passwd 3. ls 4. chgrp 5. chmod 6. chown 7. ln 8. cp 9. mv 10. rm 11. mkdir 12. rmdir 13. du 14. free 15. man 16. sudo 17. vi 18. cat 19. tail 20. head 21. less
  • 8. Linux Commands • This guide is created for the Data Scientists who are very new to Linux www.xcodepro.com 8 22. echo 23. sort 24. find 25. grep 26. top 27. ps 28. kill 29. diff 30. join 31. touch 32. expr 33. test 34. wget 35. tar 36. bunzip2 37. bzip2 38. zip 39. unzip 40. gunzip 41. gzip 42. shutdown
  • 9. 1. pwd • Print Working Directory www.xcodepro.com 9
  • 10. 2. passwd • Change your password www.xcodepro.com 10
  • 11. 3. ls • List the names of files www.xcodepro.com 11
  • 12. 4. chgrp • Changes the group association of the files and directories • chgrp [OPTION]... GROUP FILE... www.xcodepro.com 12
  • 13. 5. chmod • Changes the access mode or permissions of a file • chmod [options] mode file-list www.xcodepro.com 13 u User (Owner) g Group o Other a All r Sets read permission w Sets write permission x Sets execute permission
  • 14. 6. chown • Change a owner of a file and/or the group the file is associated with • chown [options] owner:group file-list www.xcodepro.com 14
  • 15. 7. ln • Makes a link to a file or directory www.xcodepro.com 15
  • 16. 8. cp • Copies files or directories • cp [options] source-file destination-file www.xcodepro.com 16
  • 17. 9. mv • Renames or Moves files • mv [options] existing-file new-file www.xcodepro.com 17
  • 18. 10. rm • Remove a file • rm [options] file-list www.xcodepro.com 18 -f force -i interactive -r recursive
  • 19. 11. mkdir • Create a directory • mkdir [options] directory-list www.xcodepro.com 19
  • 20. 12. rmdir • Remove directories • rmdir directory-list www.xcodepro.com 20
  • 21. 13. du • Disk usage www.xcodepro.com 21 -h human readable -s summarize
  • 22. 14. free • Check memory usage www.xcodepro.com 22
  • 23. 15. man • Displays documentation for utilities • Man [option] command www.xcodepro.com 23
  • 24. 16. sudo • sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy. www.xcodepro.com 24
  • 25. 17. vi • A text editor www.xcodepro.com 25
  • 26. 18. cat • Concatenate file(s), or standard input, to standard output. www.xcodepro.com 26
  • 27. 19. tail • Print the last 10 lines of each FILE to standard output. www.xcodepro.com 27
  • 28. 20. head • Print the first 10 lines of each FILE to standard output. www.xcodepro.com 28
  • 29. 21. less • less is a filter for paging which allows backward movement in the file as well as forward. movement. • Less /proc/cpuinfo www.xcodepro.com 29
  • 30. 22. echo • Echo the STRING(s) to standard output. www.xcodepro.com 30
  • 31. 23. sort • Sort lines of text files www.xcodepro.com 31
  • 32. 24. find • Search for files in a directory hierarchy www.xcodepro.com 32
  • 33. 25. grep • grep prints the matching lines. www.xcodepro.com 33
  • 34. 26. top • Display Linux processes www.xcodepro.com 34
  • 35. 27. ps • ps displays information about a selection of the active processes. www.xcodepro.com 35
  • 36. 28. kill • Terminate a process • kill PID_of_target_process www.xcodepro.com 36
  • 37. 29. diff • Compare files line by line. www.xcodepro.com 37
  • 38. 30. join • Join lines of two files on a common field. www.xcodepro.com 38
  • 39. 31. touch • Change file timestamps www.xcodepro.com 39
  • 40. 32. expr • Evaluate expressions www.xcodepro.com 40
  • 41. 33. test • Check file types and compare values www.xcodepro.com 41
  • 42. 34. wget • The non-interactive network downloader. www.xcodepro.com 42
  • 43. 35. tar • Saves many files together into a single tape or disk archive, and can restore individual files from the archive. • Create archive.tar from files foo and bar • tar -cf archive.tar foo bar • List all files in archive.tar verbosely • tar -tvf archive.tar • Extract all files from archive.tar • tar -xf archive.tar www.xcodepro.com 43
  • 44. 36. bzip2 • bzip2 compresses files using the Burrows-Wheeler block sorting text compression algo‐ rithm, and Huffman coding. • bzip2 file1 file2 file3 www.xcodepro.com 44
  • 45. 37. bunzip2 • bunzip2 (or bzip2 -d) decompresses all specified files. Files which were not created by bzip2 will be detected and ignored, and a warning issued. www.xcodepro.com 45
  • 46. 38. zip • Package and compress (archive) files www.xcodepro.com 46
  • 47. 39. unzip • list, test and extract compressed files in a ZIP archive www.xcodepro.com 47
  • 48. 40. gzip • gzip reduces the size of the named files using Lempel-Ziv coding (LZ77). www.xcodepro.com 48
  • 49. 41. gunzip • gunzip can decompress files created by gzip or zip www.xcodepro.com 49
  • 50. 42. shutdown • Halt, power-off or reboot the machine www.xcodepro.com 50
  • 51. About • Website: https://www.xcodepro.com • LinkedIn: https://www.linkedin.com/in/ajitkumarjain www.xcodepro.com 51 “Think Beyond Artificial Intelligence” - Ajit