Sunday, 22 Mar 2026
Subscribe
logo
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Font ResizerAa
Data Center NewsData Center News
Search
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Have an existing account? Sign In
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Data Center News > Blog > Global Market > How to examine files on Linux
Global Market

How to examine files on Linux

Last updated: October 24, 2024 6:32 pm
Published October 24, 2024
Share
data reflecting on woman’s glasses
SHARE

$ ls -ld TOPs
-rw-r--r--. 1 jdoe jdoe 9571 Oct 18 12:58 TOPs
$ ls -ldh TOPs
-rw-r--r--. 1 jdoe jdoe 9.4K Oct 18 12:58 TOPs

Viewing file content material

The cat, head, tail, extra and much less instructions assist you to view the content material of textual content information. The cat command shows your entire file whereas head and tail show the primary and final traces (defaulting to 10). The instructions under show solely three traces.

$ head -3 TZs
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
$ tail -3 TZs
W-SU
WET
Zulu

The extra command will present you a screenful of traces at a time or fewer when you add an choice (e.g., extra -10). Each the extra and much less instructions assist you to again up whereas viewing file content material, however much less backs up a line at a time whereas extra backs up a display at a time.

Utilizing the nl command

If you wish to view the traces in a textual content file in a numbered format, you should utilize the nl command. Right here’s an instance of utilizing nl together with head to see solely the primary three traces of the output.

$ nl TZs | head -3
1 Africa/Abidjan
2 Africa/Accra
3 Africa/Addis_Ababa

Viewing different kinds of information

To view the content material of information apart from textual content information whereas engaged on the command line, you should utilize the od -bc command, but it surely’s going to point out you the content material within the octal and character (the place accessible) codecs proven under. The “E L F” within the output under is brief for “executable and linkable format”. This format is used for storing binaries, libraries, core dumps and such.

$ od -bc /usr/bin/extra | head -4
0000000 177 105 114 106 002 001 001 000 000 000 000 000 000 000 000 000
177 E L F 002 001 001
0000020 003 000 076 000 001 000 000 000 040 070 000 000 000 000 000 000
003 > 001 8

The JFIF sequence within the instance under identifies the file as being in jpeg format.

$ od -bc hummingbird.jpg | head -6
0000000 377 330 377 340 000 020 112 106 111 106 000 001 001 001 000 110
377 330 377 340 020 J F I F 001 001 001 H
0000020 000 110 000 000 377 341 032 130 105 170 151 146 000 000 111 111
H 377 341 032 X E x i f I I
0000040 052 000 010 000 000 000 005 000 032 001 005 000 001 000 000 000
* b 005 032 001 005 001

Within the command under, output from the echo command is piped to the od -bc command to offer a simple instance of how this command works. It reveals the letters in “hey” adopted by a newline character.

See also  Unix, Linux and epoch time

Source link

TAGGED: examine, files, Linux
Share This Article
Twitter Email Copy Link Print
Previous Article Person holding a mask following an AI sector study highlighting that record growth is masking serious challenges including skills, safety, infrastructure, security, and more, according to the authors of the report. Record growth masks serious challenges
Next Article Zella DC launches ‘Outback’ micro data center for extreme edge deployments Zella DC launches ‘Outback’ micro data center for extreme edge deployments
Leave a comment

Leave a Reply Cancel reply

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

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
MediumFollow
- Advertisement -
Ad image

Popular Posts

How data centre design is evolving to meet new challenges

How are knowledge centre operators adapting their services to answer the speedy rise in synthetic…

January 20, 2025

Stability AI releases most powerful image generation models to date

Stability AI has introduced the discharge of Steady Diffusion 3.5, marking a leap ahead in…

October 22, 2024

AI’s challenge to Internet freedom

Julius Černiauskas, CEO at Oxylabs, explores how, while AI may have its threats, we can…

February 13, 2024

OpenAI’s ChatGPT Mac app was storing conversations in plain text

Till Friday, OpenAI’s not too long ago launched ChatGPT macOS app had a probably worrying…

July 4, 2024

Clever architecture over raw compute: DeepSeek shatters the ‘bigger is better’ approach to AI development

Be part of our day by day and weekly newsletters for the most recent updates…

February 1, 2025

You Might Also Like

Portrait of Two Diverse Developers Working on Computers, Typing Lines of Code that Appear on Big Screens Surrounding Them. Male and Female Programmers Creating Innovative Software, Fixing Bugs.
Global Market

Lenovo bolsters hybrid AI platform with Nvidia GPUs

By saad
Cloud Security Concept: Businessman uses tablet on Secure Global Networking, Data Encryption, Firewall Protection, Continuous Monitoring, to Develop Smart Solutions from Digital Technology.
Global Market

Versa extends SASE platform with Inbound SSE and Secure Enterprise Browser

By saad
Nvidia space data center
Global Market

Nvidia joins push for data centers in space

By saad
The European Commission headquarters in Brussels (8)
Global Market

Beware hyperscalers’ ‘sovereignty washing,’ Euro cloud operators tell EU

By saad
Data Center News
Facebook Twitter Youtube Instagram Linkedin

About US

Data Center News: Stay informed on the pulse of data centers. Latest updates, tech trends, and industry insights—all in one place. Elevate your data infrastructure knowledge.

Top Categories
  • Global Market
  • Infrastructure
  • Innovations
  • Investments
Usefull Links
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions

© 2024 – datacenternews.tech – All rights reserved

Welcome Back!

Sign in to your account

Lost your password?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
You can revoke your consent any time using the Revoke consent button.