LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2018, 02:50 PM   #1
danpbrown1973
LQ Newbie
 
Registered: Jul 2018
Posts: 6

Rep: Reputation: Disabled
proc/interrupts


Hi guys, my name is Daniel Brown, I am working on a CS degree, and am a complete newbie to Linux. It seems quite a bit different to someone who has only used Windows, but I kind of like it so far. My question is about the proc/interrupts command, I have tried it both from user and root, and it always says no such file exists. I have tried typing it as cat/proc/interrupts, and just proc/interrupts. Do you have to change the directory you are in to use it?
 
Old 07-03-2018, 03:05 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
The command is cat, the file is /proc/interrupts, so the entire command line is:

Code:
cat /proc/interrupts
 
1 members found this post helpful.
Old 07-03-2018, 03:06 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You need a space between a command and its arguments.

The command is cat and the argument is /proc/interrupts
Code:
cat /proc/interrupts
edit, yes as hydrurga said
 
1 members found this post helpful.
Old 07-03-2018, 03:09 PM   #4
danpbrown1973
LQ Newbie
 
Registered: Jul 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yup, that did it. Told you guys I was a beginner. Thank you!
 
Old 07-03-2018, 03:35 PM   #5
danpbrown1973
LQ Newbie
 
Registered: Jul 2018
Posts: 6

Original Poster
Rep: Reputation: Disabled
Is there a way to post pictures on here, as far as screenshots? Trying cat proc/interrupts worked once, now when I try it I am getting the same message, no such file or directory. I've tried it from both user and root.

Last edited by danpbrown1973; 07-03-2018 at 03:37 PM.
 
Old 07-03-2018, 03:39 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
You need to familiarize yourself on how file path works, as a shortcut

When you type
Code:
proc/interrupts
The path resolves to a interrupts file in a proc directory that is itself in current directory (relative path)

When you type
Code:
/proc/interrupts
This is absolute path, it resolves to interrupts file in proc directory that is itself in root filesystem
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
proc/interrupts danpbrown1973 LinuxQuestions.org Member Intro 2 07-03-2018 03:04 PM
[SOLVED] Counters in /proc/interrupts GeertVc Linux - General 1 08-19-2013 09:37 AM
Can anyone please explain about "Function call interrupts" entry in /proc/interrupts? cyclops.xmen Linux - Software 2 12-09-2009 12:13 PM
what is /proc/interrupts & /proc/irq/*/spurious mean? nesta Linux - Embedded & Single-board computer 2 06-16-2009 09:33 AM
see this output of /proc/interrupts bmahesh Linux - Hardware 5 09-19-2003 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration