How to resume CUPS printer in Linux via the Command Line

Find the printer to resume lpstat -p After entering the command above you should see a similar message as below printer HP_LaserJet_P2015 disabled since Wed 25 Sep 2013 09:35:59 AM SAST - /usr/lib/cups/backend/hp failed printer HP_LaserJet_P2015_Series is idle. enabled since Wed 05 Dec 2012 08:16:07 PM SAST Enable the printer, replace printer name with your printer cupsenable HP_LaserJet_P2015 To verify if the printer has been enabled enter the lpstat -p command again ...

April 7, 2018 · 1 min · 103 words · icarnaghan

How to save a single worksheet to a new Excel file

Right click on the Excel worksheet you wish to copy to a new Excel file. Select **Move or Copy ** Tick the check box Create a copy and select (new book) in the To bookdropdown list. Click OK Save the Workbook to a new file

April 7, 2018 · 1 min · 45 words · icarnaghan

How to search and replace text within a text file using the Command Line on Linux

This can be accomplished by using the sed command. sed = stream editor for filtering and transforming text For this example we will have a file called test.txt that contains the following text “This is a test file with some test information, containing some test data.” We want to replace all instances of test in the file with cool and save the output to a new file called cool.txt To accomplish this open a new command line window and type and execute the following command: ...

April 7, 2018 · 1 min · 212 words · icarnaghan

How to search for certain text/information within files using Linux

Example: If you have a directory with 10 000 text files in it and you need to find a certain word in a certain file but you aren’t sure what the name of the file is. You can use the method described below to find the file with selected text within it. Answer: In the command line type the following command: grep -rni “Hello World” *.txt and press enter to execute the command. What this command does it searches within all the txt (text) files to find the sentence “Hello World” and list the results. ...

April 7, 2018 · 1 min · 138 words · icarnaghan

How to search for files on the command line in Linux

By using the find command we can search for files and directories using the command line. The find command uses a raw search to find files and directories. The usage is find [PATH] [OPTIONS][SEARCH CRITERIA] Example: find /home/ -name test The example above finds all files/directories within the home directory that contain the word test Below are different common options that can be used together with the find command namely: -name = Find files with the specified name (see example above) -user = Finds files owned by the specified user -size = Finds files larger than the size specified -mtime n = File’s data was last modified n*24 hours ago. To read more about the find command use the man command ...

April 7, 2018 · 1 min · 123 words · icarnaghan

How to search within a website using Google

If you would like to find something specific within a website use the example below, in the example below we are looking for the keyword wordpress within _techportal.co.za_replace wordpress with your keyword and techportal.co.za with the website you are looking in.

April 7, 2018 · 1 min · 41 words · icarnaghan

How to see statistical information about how Linux is currently handling your memory,swap and processes

Open a new Terminal Window if not already in command line. Type in the ‘top’ command. Now a list of processes will appear as below. top - 09:38:39 up 1:09, 2 users, load average: 0.43, 0.29, 0.29 Tasks: 165 total, 2 running, 163 sleeping, 0 stopped, 0 zombie Cpu(s): 4.5%us, 3.2%sy, 0.0%ni, 92.2%id, 0.0%wa, 0.2%hi, 0.0%si, 0.0%st Mem: 1974152k total, 1622216k used, 351936k free, 68908k buffers Swap: 2493588k total, 0k used, 2493588k free, 1040980k cached ...

April 7, 2018 · 1 min · 158 words · icarnaghan

How to send the output of a PostgreSQL query to a CSV file using the CLI (Command Line Interface)

Log into the PostgreSQL interface on the command line, you should see a similar screen like the one below Welcome to psql 8.1.21, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help with psql commands \g or terminate with semicolon to execute query \q to quit database=# Type the following command \o /tmp/output.csv Make sure the Postgres user has write privileges to the directory specified /tmp/output.csv is the directory and the csv file name \o = Put all query output into file output.csv Run your sql query eg. ...

April 7, 2018 · 1 min · 138 words · icarnaghan

How to set FileZilla to Active Mode

Click on Edit and then Settings Click on FTP on the left hand side of the Window and then tick the Radio button next to Active underneath Passive. Untick Allow fall back to other transfer mode on failure, to ensure it stays in Active mode if needed.

April 7, 2018 · 1 min · 47 words · icarnaghan

How to set Firefox as your default browser in Fedora Core 15

How to set Firefox as your default browser in Fedora Core 15? Or any other Browser. Go to System Settings Click on System Info Select Default Applications And next to Web select the Browser that you wish to make your Default Web Browser

April 7, 2018 · 1 min · 43 words · icarnaghan