Wednesday, April 14, 2021
  • Setup menu at Appearance » Menus and assign menu to Top Bar Navigation
Advertisement
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News
No Result
View All Result
NikolaNews
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News
No Result
View All Result
NikolaNews
No Result
View All Result
Home Neural Networks

My Unix Commands Cheatsheet. Useful Unix Commands for Data Science… | by George Pipis

October 21, 2020
in Neural Networks
My Unix Commands Cheatsheet. Useful Unix Commands for Data Science… | by George Pipis
586
SHARES
3.3k
VIEWS
Share on FacebookShare on Twitter

Useful Unix Commands for Data Science Projects

Photo by Tianyi Ma on Unsplash

It is very important for every Data Analyst/Scientist to be able to interact with the Command Line Shell. Let’s start with a “cheat sheet” of Basic Linux Commands. This list includes a bunch of different commands that are useful to know when working with Linux.

Managing files and directories

  • cd directory: changes the current working directory to the specified one
  • pwd: prints the current working directory
  • ls: lists the contents of the current directory
  • ls directory: lists the contents of the received directory
  • ls -l: lists the additional information for the contents of the directory
  • ls -a: lists all files, including those hidden
  • ls -la: applies both the -l and the -a flags
  • mkdir directory: creates the directory with the received name
  • rmdir directory: deletes the directory with the received name (if empty)
  • rm file: deletes the file, we can either go one-by-one or we delete them all together using the *
  • cp old_name new_name: copies old_name into new_name
  • mv old_name new_name: moves old_name into new_name
  • touch file_name: creates an empty file or updates the modified time if it exists
  • chmod modifiers files: changes the permissions for the files according to the provided modifiers; we’ve seen +x to make the file executable
  • chown user files: changes the owner of the files to the given user
  • chgrp group files: changes the group of the files to the given group
Big Data Jobs

Operating with the content of files

  • cat file: shows the content of the file through standard output
  • wc file: counts the number of characters, words, and lines in the given file; can also count the same values of whatever it receives via stdin
  • file file: prints the type of the given file, as recognized by the operating system
  • head file: shows the first 10 lines of the given file
  • tail file: shows the last 10 lines of the given file
  • less file: scrolls through the contents of the given file (press “q” to quit)
  • sort file: sorts the lines of the file alphabetically
  • cut -dseparator -ffields file: for each line in the given file, splits the line according to the given separator and prints the given fields (starting from 1)

1. Fundamentals of AI, ML and Deep Learning for Product Managers

You might also like

How to Enter Your First Zindi Competition | by Davis David

Why I Think That Avengers: Age of Ultron is One of the Best Sci-Fi Movies About A.I | by Brighton Nkomo | Apr, 2021

Music and Artificial Intelligence | by Ryan M. Raiker, MBA | Apr, 2021

2. The Unfortunate Power of Deep Learning

3. Graph Neural Network for 3D Object Detection in a Point Cloud

4. Know the biggest Notable difference between AI vs. Machine Learning

Additional commands

  • echo “message”: prints the message to standard output
  • date: prints the current date
  • who: prints the list of users currently logged into the computer
  • man command: shows the manual page of the given command; manual pages contain a lot of information explaining how to use each command (press “q” to quit)
  • uptime: shows how long the computer has been running
  • free: shows the amount of unused memory on the current system

Managing streams

These are the redirectors that we can use to take control of the streams of our programs

  • command > file: redirects standard output, overwrites file
  • command >> file: redirects standard output, appends to file
  • command < file: redirects standard input from file
  • command 2> file: redirects standard error to file
  • command1 | command2: connects the output of command1 to the input of command2

Operating with processes

These are some commands that are useful to know in Linux when interacting with processes.

  • ps: lists the processes executing in the current terminal for the current user
  • ps ax: lists all processes currently executing for all users
  • ps e: shows the environment for the processes listed
  • kill PID: sends the SIGINT signal to the process identified by PID
  • fg: causes a job that was stopped or in the background to return to the foreground
  • bg: causes a job that was stopped to go to the background
  • jobs: lists the jobs currently running or stopped
  • top: shows the processes currently using the most CPU time (press “q” to quit)

Credit: BecomingHuman By: George Pipis

Previous Post

The 3 Key Types of Influencer Marketing Campaigns

Next Post

Watch live: Big data solutions, machine learning featured at Io-Tahoe SmartData Marketplaces event

Related Posts

How to Enter Your First Zindi Competition | by Davis David
Neural Networks

How to Enter Your First Zindi Competition | by Davis David

April 14, 2021
Why I Think That Avengers: Age of Ultron is One of the Best Sci-Fi Movies About A.I | by Brighton Nkomo | Apr, 2021
Neural Networks

Why I Think That Avengers: Age of Ultron is One of the Best Sci-Fi Movies About A.I | by Brighton Nkomo | Apr, 2021

April 14, 2021
Music and Artificial Intelligence | by Ryan M. Raiker, MBA | Apr, 2021
Neural Networks

Music and Artificial Intelligence | by Ryan M. Raiker, MBA | Apr, 2021

April 13, 2021
BERT Transformers — How Do They Work? | by James Montantes | Apr, 2021
Neural Networks

BERT Transformers — How Do They Work? | by James Montantes | Apr, 2021

April 13, 2021
Learning Not To Fear Machine Learning | by Dimitry Belozersky | Apr, 2021
Neural Networks

Learning Not To Fear Machine Learning | by Dimitry Belozersky | Apr, 2021

April 13, 2021
Next Post
Watch live: Big data solutions, machine learning featured at Io-Tahoe SmartData Marketplaces event

Watch live: Big data solutions, machine learning featured at Io-Tahoe SmartData Marketplaces event

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended

Plasticity in Deep Learning: Dynamic Adaptations for AI Self-Driving Cars

Plasticity in Deep Learning: Dynamic Adaptations for AI Self-Driving Cars

January 6, 2019
Microsoft, Google Use Artificial Intelligence to Fight Hackers

Microsoft, Google Use Artificial Intelligence to Fight Hackers

January 6, 2019

Categories

  • Artificial Intelligence
  • Big Data
  • Blockchain
  • Crypto News
  • Data Science
  • Digital Marketing
  • Internet Privacy
  • Internet Security
  • Learn to Code
  • Machine Learning
  • Marketing Technology
  • Neural Networks
  • Technology Companies

Don't miss it

Seminar on Machine Learning Techniques in Banking – India Education| Global Education |Education News
Machine Learning

Seminar on Machine Learning Techniques in Banking – India Education| Global Education |Education News

April 14, 2021
Four Tips for Better Videos Ads on LinkedIn [Infographic]
Marketing Technology

Four Tips for Better Videos Ads on LinkedIn [Infographic]

April 14, 2021
‘FLoC off!’ Vivaldi declares as it says no to Google’s tracking system
Internet Security

‘FLoC off!’ Vivaldi declares as it says no to Google’s tracking system

April 14, 2021
Applying artificial intelligence to science education — ScienceDaily
Machine Learning

Machine learning can help slow down future pandemics — ScienceDaily

April 14, 2021
B2B Marketers’ vs. Visitors’ Top Website Features
Marketing Technology

B2B Marketers’ vs. Visitors’ Top Website Features

April 14, 2021
Microsoft April patch download covers 114 CVEs including new Exchange Server bugs
Internet Security

Microsoft April patch download covers 114 CVEs including new Exchange Server bugs

April 14, 2021
NikolaNews

NikolaNews.com is an online News Portal which aims to share news about blockchain, AI, Big Data, and Data Privacy and more!

What’s New Here?

  • Seminar on Machine Learning Techniques in Banking – India Education| Global Education |Education News April 14, 2021
  • Four Tips for Better Videos Ads on LinkedIn [Infographic] April 14, 2021
  • ‘FLoC off!’ Vivaldi declares as it says no to Google’s tracking system April 14, 2021
  • Machine learning can help slow down future pandemics — ScienceDaily April 14, 2021

Subscribe to get more!

© 2019 NikolaNews.com - Global Tech Updates

No Result
View All Result
  • AI Development
    • Artificial Intelligence
    • Machine Learning
    • Neural Networks
    • Learn to Code
  • Data
    • Blockchain
    • Big Data
    • Data Science
  • IT Security
    • Internet Privacy
    • Internet Security
  • Marketing
    • Digital Marketing
    • Marketing Technology
  • Technology Companies
  • Crypto News

© 2019 NikolaNews.com - Global Tech Updates